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