EmojiReaction.fromMap constructor

EmojiReaction.fromMap(
  1. Map<String, dynamic> map
)

Implementation

EmojiReaction.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  emoji = map['emoji'];
  title = map['title'];
  is_active = map['is_active'];
  if (map['static_icon'] != null) {
    static_icon = TdApiMap.fromMap(map['static_icon']) as Sticker;
  }
  if (map['appear_animation'] != null) {
    appear_animation = TdApiMap.fromMap(map['appear_animation']) as Sticker;
  }
  if (map['select_animation'] != null) {
    select_animation = TdApiMap.fromMap(map['select_animation']) as Sticker;
  }
  if (map['activate_animation'] != null) {
    activate_animation = TdApiMap.fromMap(map['activate_animation']) as Sticker;
  }
  if (map['effect_animation'] != null) {
    effect_animation = TdApiMap.fromMap(map['effect_animation']) as Sticker;
  }
  if (map['around_animation'] != null) {
    around_animation = TdApiMap.fromMap(map['around_animation']) as Sticker;
  }
  if (map['center_animation'] != null) {
    center_animation = TdApiMap.fromMap(map['center_animation']) as Sticker;
  }
}