create static method
EmailAddressAuthentication
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "emailAddressAuthentication",
- bool special_is_json_scheme_class = true,
- String special_return_type = "emailAddressAuthentication",
- EmailAddressAuthenticationCode? email_address_authentication_code,
- EmailAddressAuthenticationAppleId? email_address_authentication_apple_id,
- EmailAddressAuthenticationGoogleId? email_address_authentication_google_id,
override
Generate By General Universe Script Dont edit by hand or anything manual
Implementation
static EmailAddressAuthentication create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "emailAddressAuthentication",
bool special_is_json_scheme_class = true,
String special_return_type = "emailAddressAuthentication",
EmailAddressAuthenticationCode? email_address_authentication_code,
EmailAddressAuthenticationAppleId? email_address_authentication_apple_id,
EmailAddressAuthenticationGoogleId? email_address_authentication_google_id,
}) {
// EmailAddressAuthentication emailAddressAuthentication = EmailAddressAuthentication({
final Map emailAddressAuthentication_data_create_json = {
"@type": special_type,
"@is_json_scheme_class": special_is_json_scheme_class,
"@return_type": special_return_type,
"email_address_authentication_code": (email_address_authentication_code != null) ? email_address_authentication_code.toJson() : null,
"email_address_authentication_apple_id": (email_address_authentication_apple_id != null) ? email_address_authentication_apple_id.toJson() : null,
"email_address_authentication_google_id": (email_address_authentication_google_id != null) ? email_address_authentication_google_id.toJson() : null,
};
emailAddressAuthentication_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (emailAddressAuthentication_data_create_json.containsKey(key) == false) {
emailAddressAuthentication_data_create_json[key] = value;
}
});
}
return EmailAddressAuthentication(emailAddressAuthentication_data_create_json);
}