toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.title != null) {
json[r'title'] = this.title;
} else {
json[r'title'] = null;
}
json[r'type'] = this.type;
json[r'section_id'] = this.sectionId;
json[r'showInGallery'] = this.showInGallery;
if (this.caption != null) {
json[r'caption'] = this.caption;
} else {
json[r'caption'] = null;
}
if (this.original != null) {
json[r'original'] = this.original;
} else {
json[r'original'] = null;
}
return json;
}