fromMap static method
override
Construct from Map.
Implementation
static PageBlockCollage? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var page_blocks = List<PageBlock>.from(
(_map["page_blocks"] ?? []).map(
(e) => PageBlock.fromMap(e),
),
);
var caption = PageBlockCaption.fromMap(_map['caption'])!;
return PageBlockCollage(
extra: extra,
clientId: clientId,
page_blocks: page_blocks,
caption: caption,
);
}