toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'bold'] = this.bold;
    json[r'italic'] = this.italic;
    json[r'strikethrough'] = this.strikethrough;
    json[r'underline'] = this.underline;
    json[r'code'] = this.code;
  if (this.color != null) {
    json[r'color'] = this.color;
  } else {
    json[r'color'] = null;
  }
  return json;
}