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 InputPageBlockList? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputPageBlockList(
items: List<InputPageBlockListItem>.from(
tdListFromJson(json['items'])
.map((item) => InputPageBlockListItem.fromJson(tdMapFromJson(item)))
.whereType<InputPageBlockListItem>(),
),
);
}