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 (collapsed != null) {
buffer.writeAll(['"collapsed":', collapsed, ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (colorVariation != null) {
buffer.writeAll(['"colorVariation":', colorVariation?.toJSON(), ','], '');
}
if (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (level != null) {
buffer.writeAll(['"level":', level, ','], '');
}
if (marker != null) {
buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
}
}