toOptionsJSON method

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

Implementation

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

  if (crossingDown != null) {
    buffer.writeAll(['"crossingDown":', crossingDown, ','], '');
  }
  if (crossingUp != null) {
    buffer.writeAll(['"crossingUp":', crossingUp, ','], '');
  }
  if (max != null) {
    buffer.writeAll(['"max":', max, ','], '');
  }
  if (min != null) {
    buffer.writeAll(['"min":', min, ','], '');
  }
  if (prop != null) {
    buffer.writeAll(['"prop":', jsonEncode(prop), ','], '');
  }
}