UpdateMessageUnreadReactions.fromMap constructor

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

Implementation

UpdateMessageUnreadReactions.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  chat_id = map['chat_id'];
  message_id = map['message_id'];
  if (map['unread_reactions'] != null) {
    unread_reactions = [];
    for (var someValue in map['unread_reactions']) {
      if (someValue != null) {
        unread_reactions?.add(TdApiMap.fromMap(someValue) as UnreadReaction);
      }
    }
  }
  unread_reaction_count = map['unread_reaction_count'];
}