AnimatedEmoji.fromJson constructor
Parses a AnimatedEmoji from TDLib JSON.
Implementation
factory AnimatedEmoji.fromJson(Map<String, dynamic> json) => AnimatedEmoji(
sticker: _readOptional(json['sticker'], Sticker.fromJson),
stickerWidth: _readInt(json['sticker_width']),
stickerHeight: _readInt(json['sticker_height']),
fitzpatrickType: _readInt(json['fitzpatrick_type']),
sound: _readOptional(json['sound'], File.fromJson),
isRegularEmoji: _readBool(json['is_regular_emoji']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);