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