toJson method
Implementation
Map<String, Object?> toJson() {
var content = this.content;
var excerpt = this.excerpt;
var source = this.source;
var title = this.title;
final json = <String, Object?>{};
if (content != null) {
json[r'content'] = content.toJson();
}
if (excerpt != null) {
json[r'excerpt'] = excerpt;
}
if (source != null) {
json[r'source'] = source.toJson();
}
if (title != null) {
json[r'title'] = title;
}
return json;
}