toOptionsJSON method

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

Implementation

@override
void toOptionsJSON(StringBuffer buffer) {
  super.toOptionsJSON(buffer);

  if (dataLabels != null) {
    buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (legendIndex != null) {
    buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
  }
  if (legendSymbol != null) {
    buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
  }
  if (mapData != null) {
    buffer.writeAll(['"mapData":', jsonEncode(mapData), ','], '');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}