UpdateChatAction.fromMap constructor

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

Implementation

UpdateChatAction.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  chat_id = map['chat_id'];
  message_thread_id = map['message_thread_id'];
  if (map['sender_id'] != null) {
    sender_id = TdApiMap.fromMap(map['sender_id']) as MessageSender;
  }
  if (map['action'] != null) {
    action = TdApiMap.fromMap(map['action']) as ChatAction;
  }
}