toJson method
Implementation
Map<String, Object?> toJson() {
var attachment = this.attachment;
var comment = this.comment;
var page = this.page;
var expandable = this.expandable;
var links = this.links;
final json = <String, Object?>{};
if (attachment != null) {
json[r'attachment'] = attachment.toJson();
}
if (comment != null) {
json[r'comment'] = comment.toJson();
}
if (page != null) {
json[r'page'] = page.toJson();
}
if (expandable != null) {
json[r'_expandable'] = expandable.toJson();
}
if (links != null) {
json[r'_links'] = links.toJson();
}
return json;
}