Config constructor
Config({
- String? name,
- String? logo,
- bool? disableSignup,
- bool? disableLogin,
- Timestamp? createdAt,
- Timestamp? updatedAt,
- bool? validatePassword,
- bool? verifyEmail,
- Iterable<
LoginType> ? supportedLoginMechanisms, - bool? verifyPhone,
- String? publicKey,
- Iterable<
String> ? roles, - HashingAlgorithm? hashingAlgorithm,
- Bcrypt? bcrypt,
- Scrypt? scrypt,
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,
HashingAlgorithm? hashingAlgorithm,
Bcrypt? bcrypt,
Scrypt? scrypt,
}) {
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);
}
if (hashingAlgorithm != null) {
_result.hashingAlgorithm = hashingAlgorithm;
}
if (bcrypt != null) {
_result.bcrypt = bcrypt;
}
if (scrypt != null) {
_result.scrypt = scrypt;
}
return _result;
}