toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (controlledAxis != null) {
buffer.writeAll(['"controlledAxis":', controlledAxis?.toJSON(), ','], '');
}
if (cursor != null) {
buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
if (lineDashStyle != null) {
buffer.writeAll(['"lineDashStyle":', jsonEncode(lineDashStyle), ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (x != null) {
buffer.writeAll(['"x":', x, ','], '');
}
if (y != null) {
buffer.writeAll(['"y":', y, ','], '');
}
}