toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.text != null) {
    json[r'text'] = this.text;
  } else {
    json[r'text'] = null;
  }
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.url != null) {
    json[r'url'] = this.url;
  } else {
    json[r'url'] = null;
  }
  return json;
}