Config constructor
Config({})
Implementation
factory Config({
$core.String? name,
$core.String? logo,
$core.bool? disableSignup,
$core.bool? disableLogin,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$core.bool? validatePassword,
$core.bool? verifyEmail,
$core.Iterable<LoginType>? supportedLoginMechanisms,
$core.bool? verifyPhone,
$core.String? publicKey,
$core.Iterable<$core.String>? roles,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (logo != null) {
_result.logo = logo;
}
if (disableSignup != null) {
_result.disableSignup = disableSignup;
}
if (disableLogin != null) {
_result.disableLogin = disableLogin;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
if (validatePassword != null) {
_result.validatePassword = validatePassword;
}
if (verifyEmail != null) {
_result.verifyEmail = verifyEmail;
}
if (supportedLoginMechanisms != null) {
_result.supportedLoginMechanisms.addAll(supportedLoginMechanisms);
}
if (verifyPhone != null) {
_result.verifyPhone = verifyPhone;
}
if (publicKey != null) {
_result.publicKey = publicKey;
}
if (roles != null) {
_result.roles.addAll(roles);
}
return _result;
}