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 (centerInCategory != null) {
    buffer.writeAll(['"centerInCategory":', centerInCategory, ','], '');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (clip != null) {
    buffer.writeAll(['"clip":', clip, ','], '');
  }
  if (color != null) {
    buffer.writeAll(['"color":', jsonEncode(color), ','], '');
  }
  if (colorByPoint != null) {
    buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
  }
  if (colorIndex != null) {
    buffer.writeAll(['"colorIndex":', colorIndex, ','], '');
  }
  if (colors != null) {
    buffer.write('"colors":[');
    for (var item in colors!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (cursor != null) {
    buffer.writeAll(['"cursor":', jsonEncode(cursor), ','], '');
  }
  if (curveFactor != null) {
    buffer.writeAll(['"curveFactor":', curveFactor, ','], '');
  }
  if (custom != null) {
    buffer.write('"custom":{');
    for (var item in custom!.entries) {
      buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
    }
    buffer.write('},');
  }
  if (dashStyle != null) {
    buffer.writeAll(['"dashStyle":', jsonEncode(dashStyle), ','], '');
  }
  if (dataGrouping != null) {
    buffer.writeAll(['"dataGrouping":', dataGrouping?.toJSON(), ','], '');
  }
  if (dataLabels != null) {
    buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
  }
  if (description != null) {
    buffer.writeAll(['"description":', jsonEncode(description), ','], '');
  }
  if (enableMouseTracking != null) {
    buffer.writeAll(['"enableMouseTracking":', enableMouseTracking, ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (getExtremesFromAll != null) {
    buffer.writeAll(['"getExtremesFromAll":', getExtremesFromAll, ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (inactiveOtherPoints != null) {
    buffer.writeAll(
        ['"inactiveOtherPoints":', inactiveOtherPoints?.toJSON(), ','], '');
  }
  if (includeInDataExport != null) {
    buffer.writeAll(['"includeInDataExport":', includeInDataExport, ','], '');
  }
  if (index != null) {
    buffer.writeAll(['"index":', index, ','], '');
  }
  if (keys != null) {
    buffer.write('"keys":[');
    for (var item in keys!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (label != null) {
    buffer.writeAll(['"label":', label?.toJSON(), ','], '');
  }
  if (legendIndex != null) {
    buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
  }
  if (legendSymbol != null) {
    buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
  }
  if (levels != null) {
    buffer.write('"levels":[');
    for (var item in levels!) {
      buffer.writeAll([item.toJSON(), ','], '');
    }
    buffer.write('],');
  }
  if (linkColorMode != null) {
    buffer.writeAll(['"linkColorMode":', jsonEncode(linkColorMode), ','], '');
  }
  if (linkOpacity != null) {
    buffer.writeAll(['"linkOpacity":', linkOpacity, ','], '');
  }
  if (linkedTo != null) {
    buffer.writeAll(['"linkedTo":', jsonEncode(linkedTo), ','], '');
  }
  if (minLinkWidth != null) {
    buffer.writeAll(['"minLinkWidth":', minLinkWidth, ','], '');
  }
  if (nodePadding != null) {
    buffer.writeAll(['"nodePadding":', nodePadding, ','], '');
  }
  if (nodeWidth != null) {
    buffer.writeAll(['"nodeWidth":', jsonEncode(nodeWidth), ','], '');
  }
  if (nodes != null) {
    buffer.write('"nodes":[');
    for (var item in nodes!) {
      buffer.writeAll([item.toJSON(), ','], '');
    }
    buffer.write('],');
  }
  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 (showCheckbox != null) {
    buffer.writeAll(['"showCheckbox":', showCheckbox, ','], '');
  }
  if (showInLegend != null) {
    buffer.writeAll(['"showInLegend":', showInLegend, ','], '');
  }
  if (size != null) {
    buffer.writeAll(['"size":', jsonEncode(size), ','], '');
  }
  if (skipKeyboardNavigation != null) {
    buffer.writeAll(
        ['"skipKeyboardNavigation":', skipKeyboardNavigation, ','], '');
  }
  if (sonification != null) {
    buffer.writeAll(['"sonification":', sonification?.toJSON(), ','], '');
  }
  if (stack != null) {
    buffer.writeAll(['"stack":', jsonEncode(stack), ','], '');
  }
  if (startAngle != null) {
    buffer.writeAll(['"startAngle":', startAngle, ','], '');
  }
  if (states != null) {
    buffer.writeAll(['"states":', states?.toJSON(), ','], '');
  }
  if (stickyTracking != null) {
    buffer.writeAll(['"stickyTracking":', stickyTracking, ','], '');
  }
  if (tooltip != null) {
    buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
  }
  if (turboThreshold != null) {
    buffer.writeAll(['"turboThreshold":', turboThreshold, ','], '');
  }
  if (visible != null) {
    buffer.writeAll(['"visible":', visible, ','], '');
  }
  if (xAxis != null) {
    buffer.writeAll(['"xAxis":', jsonEncode(xAxis), ','], '');
  }
  if (yAxis != null) {
    buffer.writeAll(['"yAxis":', jsonEncode(yAxis), ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}