toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (cursor != null) {
buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
}
if (curveFactor != null) {
buffer.writeAll(['"curveFactor":', curveFactor, ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (radius != null) {
buffer.writeAll(['"radius":', radius, ','], '');
}
if (type != null) {
buffer.writeAll(['"type":', jsonEncode(type), ','], '');
}
}