fromJson static method

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

Creates a object from a json

Implementation

static CallbackQuery fromJson(Map<String, dynamic> json) {
  return CallbackQuery(
    id: json['id']!,
    from: User.fromJson(json['from']!),
    message: callIfNotNull(Message.fromJson, json['message']),
    inlineMessageId: json['inline_message_id'],
    chatInstance: json['chat_instance'],
    data: json['data'],
    gameShortName: json['game_short_name'],
  );
}