toOptionsJSON method

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

Implementation

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

  if (index != null) {
    buffer.writeAll(['"index":', jsonEncode(index), ','], '');
  }
  if (period != null) {
    buffer.writeAll(['"period":', jsonEncode(period), ','], '');
  }
}