toOptionsJSON method

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

Implementation

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

  if (deviation != null) {
    buffer.writeAll(['"deviation":', deviation, ','], '');
  }
  if (highIndex != null) {
    buffer.writeAll(['"highIndex":', highIndex, ','], '');
  }
  if (lowIndex != null) {
    buffer.writeAll(['"lowIndex":', lowIndex, ','], '');
  }
}