toOptionsJSON method

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

Implementation

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

  if (borderRadius != null) {
    buffer.writeAll(['"borderRadius":', borderRadius, ','], '');
  }
  if (colorByPoint != null) {
    buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
  }
  if (connectors != null) {
    buffer.writeAll(['"connectors":', connectors?.toJSON(), ','], '');
  }
  if (dataLabels != null) {
    buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
  }
  if (dragDrop != null) {
    buffer.writeAll(['"dragDrop":', dragDrop?.toJSON(), ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', jsonEncode(events), ','], '');
  }
  if (grouping != null) {
    buffer.writeAll(['"grouping":', grouping, ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (legendIndex != null) {
    buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
  }
  if (partialFill != null) {
    buffer.writeAll(['"partialFill":', partialFill?.toJSON(), ','], '');
  }
  if (pointRange != null) {
    buffer.writeAll(['"pointRange":', pointRange, ','], '');
  }
  if (tooltip != null) {
    buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}