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