toJson method
Convert this to a valid json representation for the Notion API.
Implementation
Map<String, dynamic> toJson() {
if (type == PropertiesTypes.None) {
throw 'None type for property';
}
Map<String, dynamic> json = {'type': strType};
if (id != null) {
json['id'] = id;
}
return json;
}