toJson method

Map<String, dynamic> toJson()

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

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> json = {};

  this._map.entries.forEach((element) {
    json[element.key] = element.value.toJson();
  });

  return json;
}