fromJson static method
Implementation
static EmojiReaction? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return EmojiReaction(
emoji: (json['emoji'] as String?) ?? '',
title: (json['title'] as String?) ?? '',
isActive: (json['is_active'] as bool?) ?? false,
staticIcon: Sticker.fromJson(tdMapFromJson(json['static_icon'])),
appearAnimation: Sticker.fromJson(
tdMapFromJson(json['appear_animation']),
),
selectAnimation: Sticker.fromJson(
tdMapFromJson(json['select_animation']),
),
activateAnimation: Sticker.fromJson(
tdMapFromJson(json['activate_animation']),
),
effectAnimation: Sticker.fromJson(
tdMapFromJson(json['effect_animation']),
),
aroundAnimation: Sticker.fromJson(
tdMapFromJson(json['around_animation']),
),
centerAnimation: Sticker.fromJson(
tdMapFromJson(json['center_animation']),
),
);
}