fromMap static method
override
Construct from Map.
Implementation
static AnimatedChatPhoto? 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 length = _map['length']! as int;
var file = File.fromMap(_map['file'])!;
var main_frame_timestamp = _map['main_frame_timestamp']! as double;
return AnimatedChatPhoto(
extra: extra,
clientId: clientId,
length: length,
file: file,
main_frame_timestamp: main_frame_timestamp,
);
}