fromJson static method
Inherited by: InputPageBlockAnchor InputPageBlockAnimation InputPageBlockAudio InputPageBlockBlockQuote InputPageBlockButtonRow InputPageBlockCollage InputPageBlockDetails InputPageBlockDivider InputPageBlockDocument InputPageBlockExpandableBlockQuote 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(json['caption'] as Map<String, dynamic>?)!,
cells: List<List<PageBlockTableCell>>.from(
((json['cells'] as List<dynamic>?) ?? <dynamic>[])
.map((item) => List<PageBlockTableCell>.from(
((item as List<dynamic>?) ?? <dynamic>[])
.map((item) => PageBlockTableCell.fromJson(
item as Map<String, dynamic>?))
.toList()))
.toList()),
isBordered: (json['is_bordered'] as bool?) ?? false,
isStriped: (json['is_striped'] as bool?) ?? false,
isCompact: (json['is_compact'] as bool?) ?? false,
);
}