toJson method

Map<String, dynamic> toJson()

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

Implementation

Map<String, dynamic> toJson() =>
    {'children': _blocks.map((e) => e.toJson()).toList()};