toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (dashStyle != null) {
buffer.writeAll(['"dashStyle":', jsonEncode(dashStyle), ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (label != null) {
buffer.writeAll(['"label":', label?.toJSON(), ','], '');
}
if (width != null) {
buffer.writeAll(['"width":', width, ','], '');
}
}