toOptionsJSON method

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

Implementation

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

  if (announceNewData != null) {
    buffer
        .writeAll(['"announceNewData":', announceNewData?.toJSON(), ','], '');
  }
  if (customComponents != null) {
    buffer.writeAll(
        ['"customComponents":', jsonEncode(customComponents), ','], '');
  }
  if (description != null) {
    buffer.writeAll(['"description":', jsonEncode(description), ','], '');
  }
  if (enabled != null) {
    buffer.writeAll(['"enabled":', enabled, ','], '');
  }
  if (highContrastMode != null) {
    buffer.writeAll(
        ['"highContrastMode":', jsonEncode(highContrastMode), ','], '');
  }
  if (highContrastTheme != null) {
    buffer.writeAll(
        ['"highContrastTheme":', jsonEncode(highContrastTheme), ','], '');
  }
  if (keyboardNavigation != null) {
    buffer.writeAll(
        ['"keyboardNavigation":', keyboardNavigation?.toJSON(), ','], '');
  }
  if (landmarkVerbosity != null) {
    buffer.writeAll(
        ['"landmarkVerbosity":', jsonEncode(landmarkVerbosity), ','], '');
  }
  if (linkedDescription != null) {
    buffer.writeAll(
        ['"linkedDescription":', jsonEncode(linkedDescription), ','], '');
  }
  if (point != null) {
    buffer.writeAll(['"point":', point?.toJSON(), ','], '');
  }
  if (screenReaderSection != null) {
    buffer.writeAll(
        ['"screenReaderSection":', screenReaderSection?.toJSON(), ','], '');
  }
  if (series != null) {
    buffer.writeAll(['"series":', series?.toJSON(), ','], '');
  }
  if (typeDescription != null) {
    buffer.writeAll(
        ['"typeDescription":', jsonEncode(typeDescription), ','], '');
  }
}