toJson method
Convert this to a valid json representation for the Notion API.
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {'type': this.strType};
if (this.id != null) {
json['id'] = this.id;
}
if (this.name != null) {
json['name'] = this.name;
}
json[this.strType] = this.content.map((e) => e.toJson()).toList();
return json;
}