toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (id != null) {
_json[r'Id'] = id;
}
if (fallback != null) {
_json[r'Fallback'] = fallback;
}
if (color != null) {
_json[r'Color'] = color;
}
if (pretext != null) {
_json[r'Pretext'] = pretext;
}
if (authorName != null) {
_json[r'AuthorName'] = authorName;
}
if (authorLink != null) {
_json[r'AuthorLink'] = authorLink;
}
if (authorIcon != null) {
_json[r'AuthorIcon'] = authorIcon;
}
if (title != null) {
_json[r'Title'] = title;
}
if (titleLink != null) {
_json[r'TitleLink'] = titleLink;
}
if (text != null) {
_json[r'Text'] = text;
}
_json[r'Fields'] = fields;
if (imageURL != null) {
_json[r'ImageURL'] = imageURL;
}
if (thumbURL != null) {
_json[r'ThumbURL'] = thumbURL;
}
if (footer != null) {
_json[r'Footer'] = footer;
}
if (footerIcon != null) {
_json[r'FooterIcon'] = footerIcon;
}
if (timestamp != null) {
_json[r'Timestamp'] = timestamp;
}
return _json;
}