PageBlockTable.fromJson constructor

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

Parses a PageBlockTable from TDLib JSON.

Implementation

factory PageBlockTable.fromJson(Map<String, dynamic> json) => PageBlockTable(
      caption: _readObject(json['caption'], RichText.fromJson),
      cells: _readList<List<PageBlockTableCell>>(
          json['cells'],
          (e) => _readList<PageBlockTableCell>(
              e, (e1) => _readObject(e1, PageBlockTableCell.fromJson))),
      isBordered: _readBool(json['is_bordered']),
      isStriped: _readBool(json['is_striped']),
    );