toOptionsJSON method

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

Implementation

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

  if (acrossPanes != null) {
    buffer.writeAll(['"acrossPanes":', acrossPanes, ','], '');
  }
  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (color != null) {
    buffer.writeAll(['"color":', jsonEncode(color), ','], '');
  }
  if (dashStyle != null) {
    buffer.writeAll(['"dashStyle":', jsonEncode(dashStyle), ','], '');
  }
  if (events != null) {
    buffer.writeAll(['"events":', events?.toJSON(), ','], '');
  }
  if (id != null) {
    buffer.writeAll(['"id":', jsonEncode(id), ','], '');
  }
  if (label != null) {
    buffer.writeAll(['"label":', label?.toJSON(), ','], '');
  }
  if (labels != null) {
    buffer.writeAll(['"labels":', labels?.toJSON(), ','], '');
  }
  if (value != null) {
    buffer.writeAll(['"value":', jsonEncode(value), ','], '');
  }
  if (width != null) {
    buffer.writeAll(['"width":', width, ','], '');
  }
  if (zIndex != null) {
    buffer.writeAll(['"zIndex":', zIndex, ','], '');
  }
}