fromJson static method

InputPageBlockTable? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static InputPageBlockTable? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return InputPageBlockTable(
    caption: RichText.fromJson(tdMapFromJson(json['caption'])),
    cells: List<List<PageBlockTableCell>>.from(
      tdListFromJson(json['cells'])
          .map(
            (item) => List<PageBlockTableCell>.from(
              tdListFromJson(json['List<PageBlockTableCell>'])
                  .map(
                    (item) =>
                        PageBlockTableCell.fromJson(tdMapFromJson(item)),
                  )
                  .whereType<PageBlockTableCell>(),
            ),
          )
          .whereType<List<PageBlockTableCell>>(),
    ),
    isBordered: (json['is_bordered'] as bool?) ?? false,
    isStriped: (json['is_striped'] as bool?) ?? false,
  );
}