toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (to != null) {
buffer.writeAll(['"to":', jsonEncode(to), ','], '');
}
if (dashStyle != null) {
buffer.writeAll(['"dashStyle":', jsonEncode(dashStyle), ','], '');
}
if (endMarker != null) {
buffer.writeAll(['"endMarker":', endMarker?.toJSON(), ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (marker != null) {
buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
}
if (radius != null) {
buffer.writeAll(['"radius":', radius, ','], '');
}
if (startMarker != null) {
buffer.writeAll(['"startMarker":', startMarker?.toJSON(), ','], '');
}
if (type != null) {
buffer.writeAll(['"type":', jsonEncode(type), ','], '');
}
}