create static method
BotVerificationParameters
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "botVerificationParameters",
- String special_return_type = "botVerificationParameters",
- num? icon_custom_emoji_id,
- String? organization_name,
- FormattedText? default_custom_description,
- bool? can_set_custom_description,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static BotVerificationParameters create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "botVerificationParameters",
String special_return_type = "botVerificationParameters",
num? icon_custom_emoji_id,
String? organization_name,
FormattedText? default_custom_description,
bool? can_set_custom_description,
}) {
// BotVerificationParameters botVerificationParameters = BotVerificationParameters({
final Map botVerificationParameters_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"icon_custom_emoji_id": icon_custom_emoji_id,
"organization_name": organization_name,
"default_custom_description": (default_custom_description != null) ? default_custom_description.toJson() : null,
"can_set_custom_description": can_set_custom_description,
};
botVerificationParameters_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (botVerificationParameters_data_create_json.containsKey(key) == false) {
botVerificationParameters_data_create_json[key] = value;
}
});
}
return BotVerificationParameters(botVerificationParameters_data_create_json);
}