create static method
BotWriteAccessAllowReason
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "botWriteAccessAllowReason",
- bool special_is_json_scheme_class = true,
- String special_return_type = "botWriteAccessAllowReason",
- BotWriteAccessAllowReasonConnectedWebsite? bot_write_access_allow_reason_connected_website,
- BotWriteAccessAllowReasonLaunchedWebApp? bot_write_access_allow_reason_launched_web_app,
- BotWriteAccessAllowReasonAcceptedRequest? bot_write_access_allow_reason_accepted_request,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static BotWriteAccessAllowReason create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "botWriteAccessAllowReason",
bool special_is_json_scheme_class = true,
String special_return_type = "botWriteAccessAllowReason",
BotWriteAccessAllowReasonConnectedWebsite? bot_write_access_allow_reason_connected_website,
BotWriteAccessAllowReasonAddedToAttachmentMenu? bot_write_access_allow_reason_added_to_attachment_menu,
BotWriteAccessAllowReasonLaunchedWebApp? bot_write_access_allow_reason_launched_web_app,
BotWriteAccessAllowReasonAcceptedRequest? bot_write_access_allow_reason_accepted_request,
}) {
// BotWriteAccessAllowReason botWriteAccessAllowReason = BotWriteAccessAllowReason({
final Map botWriteAccessAllowReason_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"bot_write_access_allow_reason_connected_website": (bot_write_access_allow_reason_connected_website != null) ? bot_write_access_allow_reason_connected_website.toJson() : null,
"bot_write_access_allow_reason_added_to_attachment_menu": (bot_write_access_allow_reason_added_to_attachment_menu != null) ? bot_write_access_allow_reason_added_to_attachment_menu.toJson() : null,
"bot_write_access_allow_reason_launched_web_app": (bot_write_access_allow_reason_launched_web_app != null) ? bot_write_access_allow_reason_launched_web_app.toJson() : null,
"bot_write_access_allow_reason_accepted_request": (bot_write_access_allow_reason_accepted_request != null) ? bot_write_access_allow_reason_accepted_request.toJson() : null,
};
botWriteAccessAllowReason_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (botWriteAccessAllowReason_data_create_json.containsKey(key) == false) {
botWriteAccessAllowReason_data_create_json[key] = value;
}
});
}
return BotWriteAccessAllowReason(botWriteAccessAllowReason_data_create_json);
}