fromMap static method
override
Construct from Map.
Implementation
static PageBlockVideo? 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 video = Video.fromMap(_map['video']);
var caption = PageBlockCaption.fromMap(_map['caption'])!;
var need_autoplay = _map['need_autoplay']! as bool;
var is_looped = _map['is_looped']! as bool;
return PageBlockVideo(
extra: extra,
clientId: clientId,
video: video,
caption: caption,
need_autoplay: need_autoplay,
is_looped: is_looped,
);
}