fromMap static method
override
Construct from Map.
Implementation
static PageBlock? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'pageBlockList':
return PageBlockList.fromMap(_map);
case 'pageBlockVideo':
return PageBlockVideo.fromMap(_map);
case 'pageBlockAnimation':
return PageBlockAnimation.fromMap(_map);
case 'pageBlockRelatedArticles':
return PageBlockRelatedArticles.fromMap(_map);
case 'pageBlockAnchor':
return PageBlockAnchor.fromMap(_map);
case 'pageBlockAudio':
return PageBlockAudio.fromMap(_map);
case 'pageBlockSlideshow':
return PageBlockSlideshow.fromMap(_map);
case 'pageBlockAuthorDate':
return PageBlockAuthorDate.fromMap(_map);
case 'pageBlockFooter':
return PageBlockFooter.fromMap(_map);
case 'pageBlockEmbeddedPost':
return PageBlockEmbeddedPost.fromMap(_map);
case 'pageBlockCollage':
return PageBlockCollage.fromMap(_map);
case 'pageBlockVoiceNote':
return PageBlockVoiceNote.fromMap(_map);
case 'pageBlockKicker':
return PageBlockKicker.fromMap(_map);
case 'pageBlockChatLink':
return PageBlockChatLink.fromMap(_map);
case 'pageBlockSubheader':
return PageBlockSubheader.fromMap(_map);
case 'pageBlockTitle':
return PageBlockTitle.fromMap(_map);
case 'pageBlockPreformatted':
return PageBlockPreformatted.fromMap(_map);
case 'pageBlockMap':
return PageBlockMap.fromMap(_map);
case 'pageBlockDetails':
return PageBlockDetails.fromMap(_map);
case 'pageBlockHeader':
return PageBlockHeader.fromMap(_map);
case 'pageBlockDivider':
return PageBlockDivider.fromMap(_map);
case 'pageBlockEmbedded':
return PageBlockEmbedded.fromMap(_map);
case 'pageBlockTable':
return PageBlockTable.fromMap(_map);
case 'pageBlockPhoto':
return PageBlockPhoto.fromMap(_map);
case 'pageBlockCover':
return PageBlockCover.fromMap(_map);
case 'pageBlockPullQuote':
return PageBlockPullQuote.fromMap(_map);
case 'pageBlockParagraph':
return PageBlockParagraph.fromMap(_map);
case 'pageBlockBlockQuote':
return PageBlockBlockQuote.fromMap(_map);
case 'pageBlockSubtitle':
return PageBlockSubtitle.fromMap(_map);
case null:
default:
return null;
}
}