UpdateNewCallbackQuery.fromJson constructor

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

Parse from a json

Implementation

factory UpdateNewCallbackQuery.fromJson(Map<String, dynamic> json) => UpdateNewCallbackQuery(
  id: int.parse(json['id']),
  senderUserId: json['sender_user_id'],
  chatId: json['chat_id'],
  messageId: json['message_id'],
  chatInstance: int.parse(json['chat_instance']),
  payload: CallbackQueryPayload.fromJson(json['payload']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);