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