toOptionsJSON method

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

Implementation

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

  if (borderColor != null) {
    buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
  }
  if (brightness != null) {
    buffer.writeAll(['"brightness":', brightness, ','], '');
  }
  if (opacity != null) {
    buffer.writeAll(['"opacity":', opacity, ','], '');
  }
  if (shadow != null) {
    buffer.writeAll(['"shadow":', shadow, ','], '');
  }
  if (animation != null) {
    buffer.writeAll(['"animation":', animation?.toJSON(), ','], '');
  }
  if (enabled != null) {
    buffer.writeAll(['"enabled":', enabled, ','], '');
  }
  if (lineWidth != null) {
    buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
  }
  if (lineWidthPlus != null) {
    buffer.writeAll(['"lineWidthPlus":', lineWidthPlus, ','], '');
  }
  if (marker != null) {
    buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
  }
}