toJson method

Map<String, dynamic> toJson()

Convert this to a valid json representation for the Notion API.

Implementation

Map<String, dynamic> toJson() => {
      'object': objectTypeToString(this.object),
      'title': title.map((e) => e.toJson()).toList(),
      'parent': parent.toJson(),
      'properties': properties.toJson(),
    };