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