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