UpdateChatAction.fromJson constructor

UpdateChatAction.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory UpdateChatAction.fromJson(Map<String, dynamic> json) => UpdateChatAction(
  chatId: json['chat_id'],
  messageThreadId: json['message_thread_id'],
  senderId: MessageSender.fromJson(json['sender_id']),
  action: ChatAction.fromJson(json['action']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);