PageBlockTable.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockTable.fromJson(Map<String, dynamic> json) => PageBlockTable(
      caption: RichText.fromJson(json['caption']),
      cells: List<List<PageBlockTableCell>>.from((json['cells'] ?? [])
          .map((item) => List<PageBlockTableCell>.from((item ?? [])
              .map((innerItem) => PageBlockTableCell.fromJson(innerItem))
              .toList()))
          .toList()),
      isBordered: json['is_bordered'],
      isStriped: json['is_striped'],
    );