CallbackQuery.fromJson constructor
Creates a new CallbackQuery object from a JSON Map.
Implementation
factory CallbackQuery.fromJson(Map<String, dynamic> json) {
return CallbackQuery(
id: json['id'],
from: User.fromJson(json['from']),
message:
json['message'] == null ? null : Message.fromJson(json['message']),
inlineMessageId: json['inline_message_id'],
chatInstance: json['chat_instance'],
data: json['data'],
gameShortName: json['game_short_name'],
);
}