fromJson static method
Inherited by: InputPageBlockAnchor InputPageBlockAnimation InputPageBlockAudio InputPageBlockBlockQuote InputPageBlockCollage InputPageBlockDetails InputPageBlockDivider InputPageBlockFooter InputPageBlockList InputPageBlockMap InputPageBlockMathematicalExpression InputPageBlockParagraph InputPageBlockPhoto InputPageBlockPreformatted InputPageBlockPullQuote InputPageBlockSectionHeading InputPageBlockSlideshow InputPageBlockTable InputPageBlockThinking InputPageBlockVideo InputPageBlockVoiceNote
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,
);
}