toOptionsJSON method

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

Implementation

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

  if (accessibility != null) {
    buffer.writeAll(['"accessibility":', accessibility?.toJSON(), ','], '');
  }
  if (allowPointSelect != null) {
    buffer.writeAll(['"allowPointSelect":', allowPointSelect, ','], '');
  }
  if (animation != null) {
    buffer.writeAll(['"animation":', jsonEncode(animation), ','], '');
  }
  if (borderColor != null) {
    buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
  }
  if (borderRadius != null) {
    buffer.write('"borderRadius":{');
    for (var item in borderRadius!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (borderWidth != null) {
    buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
  }
  if (center != null) {
    buffer.write('"center":[');
    for (var item in center!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (clip != null) {
    buffer.writeAll(['"clip":', clip, ','], '');
  }
  if (color != null) {
    buffer.writeAll(['"color":', jsonEncode(color), ','], '');
  }
  if (colorAxis != null) {
    buffer.writeAll(['"colorAxis":', jsonEncode(colorAxis), ','], '');
  }
  if (colorIndex != null) {
    buffer.writeAll(['"colorIndex":', colorIndex, ','], '');
  }
  if (colorKey != null) {
    buffer.writeAll(['"colorKey":', jsonEncode(colorKey), ','], '');
  }
  if (colors != null) {
    buffer.write('"colors":[');
    for (var item in colors!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (crisp != null) {
    buffer.writeAll(['"crisp":', crisp, ','], '');
  }
  if (cursor != null) {
    buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
  }
  if (custom != null) {
    buffer.write('"custom":{');
    for (var item in custom!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (dataLabels != null) {
    buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
  }
  if (depth != null) {
    buffer.writeAll(['"depth":', depth, ','], '');
  }
  if (description != null) {
    buffer.writeAll(['"description":', jsonEncode(description), ','], '');
  }
  if (enableMouseTracking != null) {
    buffer.writeAll(['"enableMouseTracking":', enableMouseTracking, ','], '');
  }
  if (endAngle != null) {
    buffer.writeAll(['"endAngle":', endAngle, ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (fillColor != null) {
    buffer.writeAll(['"fillColor":', jsonEncode(fillColor), ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (ignoreHiddenPoint != null) {
    buffer.writeAll(['"ignoreHiddenPoint":', ignoreHiddenPoint, ','], '');
  }
  if (inactiveOtherPoints != null) {
    buffer.writeAll(
        ['"inactiveOtherPoints":', inactiveOtherPoints?.toJSON(), ','], '');
  }
  if (includeInDataExport != null) {
    buffer.writeAll(['"includeInDataExport":', includeInDataExport, ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (innerSize != null) {
    buffer.writeAll(['"innerSize":', jsonEncode(innerSize), ','], '');
  }
  if (keys != null) {
    buffer.write('"keys":[');
    for (var item in keys!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (legendIndex != null) {
    buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
  }
  if (legendSymbol != null) {
    buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
  }
  if (legendSymbolColor != null) {
    buffer.writeAll(
        ['"legendSymbolColor":', jsonEncode(legendSymbolColor), ','], '');
  }
  if (linecap != null) {
    buffer.writeAll(['"linecap":', jsonEncode(linecap), ','], '');
  }
  if (maxPointSize != null) {
    buffer.writeAll(['"maxPointSize":', jsonEncode(maxPointSize), ','], '');
  }
  if (minPointSize != null) {
    buffer.writeAll(['"minPointSize":', jsonEncode(minPointSize), ','], '');
  }
  if (minSize != null) {
    buffer.writeAll(['"minSize":', jsonEncode(minSize), ','], '');
  }
  if (nullInteraction != null) {
    buffer.writeAll(['"nullInteraction":', nullInteraction, ','], '');
  }
  if (onPoint != null) {
    buffer.writeAll(['"onPoint":', onPoint?.toJSON(), ','], '');
  }
  if (opacity != null) {
    buffer.writeAll(['"opacity":', opacity, ','], '');
  }
  if (point != null) {
    buffer.writeAll(['"point":', point?.toJSON(), ','], '');
  }
  if (pointDescriptionFormat != null) {
    buffer.writeAll([
      '"pointDescriptionFormat":',
      jsonEncode(pointDescriptionFormat),
      ','
    ], '');
  }
  if (pointDescriptionFormatter != null) {
    buffer.writeAll([
      '"pointDescriptionFormatter":',
      jsonEncode(pointDescriptionFormatter),
      ','
    ], '');
  }
  if (relativeXValue != null) {
    buffer.writeAll(['"relativeXValue":', relativeXValue, ','], '');
  }
  if (selected != null) {
    buffer.writeAll(['"selected":', selected, ','], '');
  }
  if (shadow != null) {
    buffer.write('"shadow":{');
    for (var item in shadow!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (showCheckbox != null) {
    buffer.writeAll(['"showCheckbox":', showCheckbox, ','], '');
  }
  if (showInLegend != null) {
    buffer.writeAll(['"showInLegend":', showInLegend, ','], '');
  }
  if (size != null) {
    buffer.writeAll(['"size":', jsonEncode(size), ','], '');
  }
  if (sizeBy != null) {
    buffer.writeAll(['"sizeBy":', jsonEncode(sizeBy), ','], '');
  }
  if (skipKeyboardNavigation != null) {
    buffer.writeAll(
        ['"skipKeyboardNavigation":', skipKeyboardNavigation, ','], '');
  }
  if (slicedOffset != null) {
    buffer.writeAll(['"slicedOffset":', slicedOffset, ','], '');
  }
  if (sonification != null) {
    buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
  }
  if (startAngle != null) {
    buffer.writeAll(['"startAngle":', startAngle, ','], '');
  }
  if (states != null) {
    buffer.writeAll(['"states":', states?.toJSON(), ','], '');
  }
  if (stickyTracking != null) {
    buffer.writeAll(['"stickyTracking":', stickyTracking, ','], '');
  }
  if (thickness != null) {
    buffer.writeAll(['"thickness":', thickness, ','], '');
  }
  if (tooltip != null) {
    buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
  }
  if (visible != null) {
    buffer.writeAll(['"visible":', visible, ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
  if (zMax != null) {
    buffer.writeAll(['"zMax":', zMax, ','], '');
  }
  if (zMin != null) {
    buffer.writeAll(['"zMin":', zMin, ','], '');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}