toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'rich_text'] = this.richText;
  if (this.language != null) {
    json[r'language'] = this.language;
  } else {
    json[r'language'] = null;
  }
  if (this.checked != null) {
    json[r'checked'] = this.checked;
  } else {
    json[r'checked'] = null;
  }
  if (this.icon != null) {
    json[r'icon'] = this.icon;
  } else {
    json[r'icon'] = null;
  }
  if (this.color != null) {
    json[r'color'] = this.color;
  } else {
    json[r'color'] = null;
  }
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  if (this.caption != null) {
    json[r'caption'] = this.caption;
  } else {
    json[r'caption'] = null;
  }
  if (this.altText != null) {
    json[r'alt_text'] = this.altText;
  } else {
    json[r'alt_text'] = null;
  }
  if (this.embedUrl != null) {
    json[r'embed_url'] = this.embedUrl;
  } else {
    json[r'embed_url'] = null;
  }
    json[r'cells'] = this.cells;
  if (this.expression != null) {
    json[r'expression'] = this.expression;
  } else {
    json[r'expression'] = null;
  }
  return json;
}