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 (alignTicks != null) {
    buffer.writeAll(['"alignTicks":', alignTicks, ','], '');
  }
  if (allowDecimals != null) {
    buffer.writeAll(['"allowDecimals":', allowDecimals, ','], '');
  }
  if (categories != null) {
    buffer.write('"categories":[');
    for (var item in categories!) {
      buffer.writeAll([jsonEncode(item), ','], '');
    }
    buffer.write('],');
  }
  if (ceiling != null) {
    buffer.writeAll(['"ceiling":', ceiling, ','], '');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (crosshair != null) {
    buffer.writeAll(['"crosshair":', crosshair?.toJSON(), ','], '');
  }
  if (crossing != null) {
    buffer.writeAll(['"crossing":', crossing, ','], '');
  }
  if (dateTimeLabelFormats != null) {
    buffer.writeAll(
        ['"dateTimeLabelFormats":', dateTimeLabelFormats?.toJSON(), ','], '');
  }
  if (endOnTick != null) {
    buffer.writeAll(['"endOnTick":', endOnTick, ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (floor != null) {
    buffer.writeAll(['"floor":', floor, ','], '');
  }
  if (gridZIndex != null) {
    buffer.writeAll(['"gridZIndex":', gridZIndex, ','], '');
  }
  if (height != null) {
    buffer.writeAll(['"height":', jsonEncode(height), ','], '');
  }
  if (labels != null) {
    buffer.writeAll(['"labels":', labels?.toJSON(), ','], '');
  }
  if (left != null) {
    buffer.writeAll(['"left":', jsonEncode(left), ','], '');
  }
  if (lineColor != null) {
    buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
  }
  if (lineWidth != null) {
    buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
  }
  if (linkedTo != null) {
    buffer.writeAll(['"linkedTo":', linkedTo, ','], '');
  }
  if (margin != null) {
    buffer.writeAll(['"margin":', margin, ','], '');
  }
  if (max != null) {
    buffer.writeAll(['"max":', jsonEncode(max), ','], '');
  }
  if (maxPadding != null) {
    buffer.writeAll(['"maxPadding":', maxPadding, ','], '');
  }
  if (min != null) {
    buffer.writeAll(['"min":', jsonEncode(min), ','], '');
  }
  if (minPadding != null) {
    buffer.writeAll(['"minPadding":', minPadding, ','], '');
  }
  if (minRange != null) {
    buffer.writeAll(['"minRange":', minRange, ','], '');
  }
  if (minTickInterval != null) {
    buffer.writeAll(['"minTickInterval":', minTickInterval, ','], '');
  }
  if (minorTickColor != null) {
    buffer
        .writeAll(['"minorTickColor":', jsonEncode(minorTickColor), ','], '');
  }
  if (minorTickInterval != null) {
    buffer.writeAll(
        ['"minorTickInterval":', jsonEncode(minorTickInterval), ','], '');
  }
  if (minorTickLength != null) {
    buffer.writeAll(['"minorTickLength":', minorTickLength, ','], '');
  }
  if (minorTickPosition != null) {
    buffer.writeAll(
        ['"minorTickPosition":', jsonEncode(minorTickPosition), ','], '');
  }
  if (minorTickWidth != null) {
    buffer.writeAll(['"minorTickWidth":', minorTickWidth, ','], '');
  }
  if (minorTicks != null) {
    buffer.writeAll(['"minorTicks":', minorTicks, ','], '');
  }
  if (minorTicksPerMajor != null) {
    buffer.writeAll(['"minorTicksPerMajor":', minorTicksPerMajor, ','], '');
  }
  if (offset != null) {
    buffer.writeAll(['"offset":', offset, ','], '');
  }
  if (opposite != null) {
    buffer.writeAll(['"opposite":', opposite, ','], '');
  }
  if (pane != null) {
    buffer.writeAll(['"pane":', pane, ','], '');
  }
  if (panningEnabled != null) {
    buffer.writeAll(['"panningEnabled":', panningEnabled, ','], '');
  }
  if (reversed != null) {
    buffer.writeAll(['"reversed":', reversed, ','], '');
  }
  if (reversedStacks != null) {
    buffer.writeAll(['"reversedStacks":', reversedStacks, ','], '');
  }
  if (showEmpty != null) {
    buffer.writeAll(['"showEmpty":', showEmpty, ','], '');
  }
  if (showFirstLabel != null) {
    buffer.writeAll(['"showFirstLabel":', showFirstLabel, ','], '');
  }
  if (showLastLabel != null) {
    buffer.writeAll(['"showLastLabel":', showLastLabel, ','], '');
  }
  if (softMax != null) {
    buffer.writeAll(['"softMax":', softMax, ','], '');
  }
  if (softMin != null) {
    buffer.writeAll(['"softMin":', softMin, ','], '');
  }
  if (stackShadow != null) {
    buffer.writeAll(['"stackShadow":', stackShadow?.toJSON(), ','], '');
  }
  if (startOfWeek != null) {
    buffer.writeAll(['"startOfWeek":', startOfWeek, ','], '');
  }
  if (startOnTick != null) {
    buffer.writeAll(['"startOnTick":', startOnTick, ','], '');
  }
  if (tickAmount != null) {
    buffer.writeAll(['"tickAmount":', tickAmount, ','], '');
  }
  if (tickColor != null) {
    buffer.writeAll(['"tickColor":', jsonEncode(tickColor), ','], '');
  }
  if (tickInterval != null) {
    buffer.writeAll(['"tickInterval":', tickInterval, ','], '');
  }
  if (tickLength != null) {
    buffer.writeAll(['"tickLength":', tickLength, ','], '');
  }
  if (tickPixelInterval != null) {
    buffer.writeAll(['"tickPixelInterval":', tickPixelInterval, ','], '');
  }
  if (tickPosition != null) {
    buffer.writeAll(['"tickPosition":', jsonEncode(tickPosition), ','], '');
  }
  if (tickPositioner != null) {
    buffer.writeAll(['"tickPositioner":', tickPositioner?.toJSON(), ','], '');
  }
  if (tickPositions != null) {
    buffer.write('"tickPositions":[');
    for (var item in tickPositions!) {
      buffer.writeAll([item, ','], '');
    }
    buffer.write('],');
  }
  if (tickWidth != null) {
    buffer.writeAll(['"tickWidth":', tickWidth, ','], '');
  }
  if (tickmarkPlacement != null) {
    buffer.writeAll(
        ['"tickmarkPlacement":', jsonEncode(tickmarkPlacement), ','], '');
  }
  if (title != null) {
    buffer.writeAll(['"title":', title?.toJSON(), ','], '');
  }
  if (tooltipValueFormat != null) {
    buffer.writeAll(
        ['"tooltipValueFormat":', jsonEncode(tooltipValueFormat), ','], '');
  }
  if (top != null) {
    buffer.writeAll(['"top":', jsonEncode(top), ','], '');
  }
  if (type != null) {
    buffer.writeAll(['"type":', jsonEncode(type), ','], '');
  }
  if (uniqueNames != null) {
    buffer.writeAll(['"uniqueNames":', uniqueNames, ','], '');
  }
  if (units != null) {
    buffer.write('"units":[');
    for (var item in units!) {
      buffer.writeAll([item, ','], '');
    }
    buffer.write('],');
  }
  if (visible != null) {
    buffer.writeAll(['"visible":', visible, ','], '');
  }
  if (width != null) {
    buffer.writeAll(['"width":', jsonEncode(width), ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
  if (zoomEnabled != null) {
    buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
  }
}