toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final html = this.html;
  final text = this.text;
  return {
    if (html != null) 'Html': html,
    if (text != null) 'Text': text,
  };
}