create static method
BotVerification
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "botVerification",
- String special_return_type = "botVerification",
- num? bot_user_id,
- num? icon_custom_emoji_id,
- FormattedText? custom_description,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static BotVerification create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "botVerification",
String special_return_type = "botVerification",
num? bot_user_id,
num? icon_custom_emoji_id,
FormattedText? custom_description,
}) {
// BotVerification botVerification = BotVerification({
final Map botVerification_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"bot_user_id": bot_user_id,
"icon_custom_emoji_id": icon_custom_emoji_id,
"custom_description": (custom_description != null) ? custom_description.toJson() : null,
};
botVerification_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (botVerification_data_create_json.containsKey(key) == false) {
botVerification_data_create_json[key] = value;
}
});
}
return BotVerification(botVerification_data_create_json);
}