toOptionsJSON method

  1. @override
void toOptionsJSON(
  1. StringBuffer buffer
)
override

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), ','], '');
  }
}