toOptionsJSON method

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

Implementation

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

  if (fibonacci != null) {
    buffer.writeAll(['"fibonacci":', fibonacci?.toJSON(), ','], '');
  }
  if (fibonacciTimeZones != null) {
    buffer.writeAll(
        ['"fibonacciTimeZones":', fibonacciTimeZones?.toJSON(), ','], '');
  }
  if (items != null) {
    buffer.writeAll(['"items":', jsonEncode(items), ','], '');
  }
  if (parallelChannel != null) {
    buffer
        .writeAll(['"parallelChannel":', parallelChannel?.toJSON(), ','], '');
  }
  if (pitchfork != null) {
    buffer.writeAll(['"pitchfork":', pitchfork?.toJSON(), ','], '');
  }
  if (timeCycles != null) {
    buffer.writeAll(['"timeCycles":', timeCycles?.toJSON(), ','], '');
  }
}