PageBlockTable.fromJson constructor

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

Parse from a json

Implementation

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