toJson method
Implementation
Map<String, Object?> toJson() {
var attachment = this.attachment;
var comment = this.comment;
var page = this.page;
var expandable = this.expandable;
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();
}
return json;
}