toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (size != null) {
buffer.writeAll(['"size":', size, ','], '');
}
if (attributes != null) {
buffer.writeAll(['"attributes":', jsonEncode(attributes), ','], '');
}
if (opacity != null) {
buffer.writeAll(['"opacity":', opacity, ','], '');
}
}