fromMap static method
override
Construct from Map.
Implementation
static PageBlockDetails? 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 header = RichText.fromMap(_map['header'])!;
var page_blocks = List<PageBlock>.from(
(_map["page_blocks"] ?? []).map(
(e) => PageBlock.fromMap(e),
),
);
var is_open = _map['is_open']! as bool;
return PageBlockDetails(
extra: extra,
clientId: clientId,
header: header,
page_blocks: page_blocks,
is_open: is_open,
);
}