fromJson static method
Implementation
static AnimatedEmoji? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return AnimatedEmoji(
sticker: Sticker.fromJson(tdMapFromJson(json['sticker'])),
stickerWidth: (json['sticker_width'] as int?) ?? 0,
stickerHeight: (json['sticker_height'] as int?) ?? 0,
fitzpatrickType: (json['fitzpatrick_type'] as int?) ?? 0,
sound: File.fromJson(tdMapFromJson(json['sound'])),
);
}