InlineQueryResultGame.fromJson constructor

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

Constructs an InlineQueryResultGame object from a JSON map

Implementation

factory InlineQueryResultGame.fromJson(Map<String, dynamic> json) {
  return InlineQueryResultGame(
    gameShortName: json['game_short_name'] as String,
    id: json['id'] as String,
    replyMarkup: json['reply_markup'] == null
        ? null
        : InlineKeyboardMarkup.fromJson(
            json['reply_markup'] as Map<String, dynamic>,
          ),
  );
}