toOptionsJSON method

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

Implementation

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

  if (className != null) {
    buffer.writeAll(['"className":', jsonEncode(className), ','], '');
  }
  if (color != null) {
    buffer.writeAll(['"color":', jsonEncode(color), ','], '');
  }
  if (enabled != null) {
    buffer.writeAll(['"enabled":', enabled, ','], '');
  }
  if (minimumClusterSize != null) {
    buffer.writeAll(['"minimumClusterSize":', minimumClusterSize, ','], '');
  }
  if (name != null) {
    buffer.writeAll(['"name":', jsonEncode(name), ','], '');
  }
  if (pixelHeight != null) {
    buffer.writeAll(['"pixelHeight":', pixelHeight, ','], '');
  }
  if (pixelWidth != null) {
    buffer.writeAll(['"pixelWidth":', pixelWidth, ','], '');
  }
  if (reductionFactor != null) {
    buffer.writeAll(['"reductionFactor":', reductionFactor, ','], '');
  }
}