toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (afterRegionLabel != null) {
buffer.writeAll(
['"afterRegionLabel":', jsonEncode(afterRegionLabel), ','], '');
}
if (annotations != null) {
buffer.writeAll(['"annotations":', annotations?.toJSON(), ','], '');
}
if (beforeRegionLabel != null) {
buffer.writeAll(
['"beforeRegionLabel":', jsonEncode(beforeRegionLabel), ','], '');
}
if (endOfChartMarker != null) {
buffer.writeAll(
['"endOfChartMarker":', jsonEncode(endOfChartMarker), ','], '');
}
}