toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (fillColor != null) {
buffer.writeAll(['"fillColor":', jsonEncode(fillColor), ','], '');
}
if (fillOpacity != null) {
buffer.writeAll(['"fillOpacity":', fillOpacity, ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (states != null) {
buffer.writeAll(['"states":', states?.toJSON(), ','], '');
}
if (symbol != null) {
buffer.writeAll(['"symbol":', jsonEncode(symbol), ','], '');
}
}