toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (apiKey != null) {
buffer.writeAll(['"apiKey":', jsonEncode(apiKey), ','], '');
}
if (subdomain != null) {
buffer.writeAll(['"subdomain":', jsonEncode(subdomain), ','], '');
}
if (theme != null) {
buffer.writeAll(['"theme":', jsonEncode(theme), ','], '');
}
if (type != null) {
buffer.writeAll(['"type":', jsonEncode(type), ','], '');
}
if (url != null) {
buffer.writeAll(['"url":', jsonEncode(url), ','], '');
}
}