toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (colorByPoint != null) {
buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
}
if (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (level != null) {
buffer.writeAll(['"level":', level, ','], '');
}
if (linkOpacity != null) {
buffer.writeAll(['"linkOpacity":', linkOpacity, ','], '');
}
if (states != null) {
buffer.writeAll(['"states":', states?.toJSON(), ','], '');
}
}