fromMap static method
override
Construct from Map.
Implementation
static AnimatedEmoji? 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 sticker = Sticker.fromMap(_map['sticker']);
var sticker_width = _map['sticker_width']! as int;
var sticker_height = _map['sticker_height']! as int;
var fitzpatrick_type = _map['fitzpatrick_type']! as int;
var sound = File.fromMap(_map['sound']);
return AnimatedEmoji(
extra: extra,
clientId: clientId,
sticker: sticker,
sticker_width: sticker_width,
sticker_height: sticker_height,
fitzpatrick_type: fitzpatrick_type,
sound: sound,
);
}