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