toOptionsJSON method

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

Implementation

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

  if (bold != null) {
    buffer.writeAll(['"bold":', jsonEncode(bold), ','], '');
  }
  if (bolditalic != null) {
    buffer.writeAll(['"bolditalic":', jsonEncode(bolditalic), ','], '');
  }
  if (italic != null) {
    buffer.writeAll(['"italic":', jsonEncode(italic), ','], '');
  }
  if (normal != null) {
    buffer.writeAll(['"normal":', jsonEncode(normal), ','], '');
  }
}