Parse from a json
factory UpdateNewChat.fromJson(Map<String, dynamic> json) => UpdateNewChat( chat: Chat.fromJson(json['chat']), extra: json['@extra'], clientId: json['@client_id'], );