PageBlockListItem.fromJson constructor

PageBlockListItem.fromJson(
  1. Map<String, dynamic> json
)

Parses a PageBlockListItem from TDLib JSON.

Implementation

factory PageBlockListItem.fromJson(Map<String, dynamic> json) =>
    PageBlockListItem(
      label: _readString(json['label']),
      pageBlocks: _readList<PageBlock>(
          json['page_blocks'], (e) => _readObject(e, PageBlock.fromJson)),
    );