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 InputPageBlockMap? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputPageBlockMap(
location: Location.fromJson(tdMapFromJson(json['location'])),
zoom: (json['zoom'] as int?) ?? 0,
width: (json['width'] as int?) ?? 0,
height: (json['height'] as int?) ?? 0,
caption: PageBlockCaption.fromJson(tdMapFromJson(json['caption'])),
);
}