InputInlineQueryResultGame.fromJson constructor

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

Parses a InputInlineQueryResultGame from TDLib JSON.

Implementation

factory InputInlineQueryResultGame.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultGame(
      id: _readString(json['id']),
      gameShortName: _readString(json['game_short_name']),
      replyMarkup: _readOptional(json['reply_markup'], ReplyMarkup.fromJson),
    );