create static method
InputInlineQueryResultGame
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "inputInlineQueryResultGame",
- String special_return_type = "inputInlineQueryResult",
- String? id,
- String? game_short_name,
- ReplyMarkup? reply_markup,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static InputInlineQueryResultGame create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "inputInlineQueryResultGame",
String special_return_type = "inputInlineQueryResult",
String? id,
String? game_short_name,
ReplyMarkup? reply_markup,
}) {
// InputInlineQueryResultGame inputInlineQueryResultGame = InputInlineQueryResultGame({
final Map inputInlineQueryResultGame_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"id": id,
"game_short_name": game_short_name,
"reply_markup": (reply_markup != null) ? reply_markup.toJson() : null,
};
inputInlineQueryResultGame_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (inputInlineQueryResultGame_data_create_json.containsKey(key) == false) {
inputInlineQueryResultGame_data_create_json[key] = value;
}
});
}
return InputInlineQueryResultGame(inputInlineQueryResultGame_data_create_json);
}