Config constructor
Config({
- String? name,
- String? logo,
- bool? enableSignup,
- bool? enableLogin,
- Timestamp? createdAt,
- Timestamp? updatedAt,
- bool? validatePassword,
- String? publicKey,
- HashingAlgorithm? hashingAlgorithm,
- Bcrypt? bcrypt,
- Scrypt? scrypt,
- Map<
String, OidcProvider> ? oidcProviders, - Map<
String, EmailProvider> ? emailProviders, - EmailProviderType? selectedEmailProvider,
- Map<
String, TextProvider> ? textProviders, - TextProviderType? selectedTextProvider,
- Iterable<
LoginType> ? supportedLoginMechanisms, - Map<
String, Template> ? templates, - int? accessTokenExpiry,
- int? refreshTokenExpiry,
- int? verificationCodeExpiry,
- Timestamp? passwordUpdatedAt,
- Iterable<
String> ? callbacks, - bool? emailConfigured,
- bool? textConfigured,
Implementation
factory Config({
$core.String? name,
$core.String? logo,
$core.bool? enableSignup,
$core.bool? enableLogin,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$core.bool? validatePassword,
$core.String? publicKey,
HashingAlgorithm? hashingAlgorithm,
Bcrypt? bcrypt,
Scrypt? scrypt,
$core.Map<$core.String, OidcProvider>? oidcProviders,
$core.Map<$core.String, EmailProvider>? emailProviders,
EmailProviderType? selectedEmailProvider,
$core.Map<$core.String, TextProvider>? textProviders,
TextProviderType? selectedTextProvider,
$core.Iterable<LoginType>? supportedLoginMechanisms,
$core.Map<$core.String, Template>? templates,
$core.int? accessTokenExpiry,
$core.int? refreshTokenExpiry,
$core.int? verificationCodeExpiry,
$1.Timestamp? passwordUpdatedAt,
$core.Iterable<$core.String>? callbacks,
$core.bool? emailConfigured,
$core.bool? textConfigured,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (logo != null) {
_result.logo = logo;
}
if (enableSignup != null) {
_result.enableSignup = enableSignup;
}
if (enableLogin != null) {
_result.enableLogin = enableLogin;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
if (validatePassword != null) {
_result.validatePassword = validatePassword;
}
if (publicKey != null) {
_result.publicKey = publicKey;
}
if (hashingAlgorithm != null) {
_result.hashingAlgorithm = hashingAlgorithm;
}
if (bcrypt != null) {
_result.bcrypt = bcrypt;
}
if (scrypt != null) {
_result.scrypt = scrypt;
}
if (oidcProviders != null) {
_result.oidcProviders.addAll(oidcProviders);
}
if (emailProviders != null) {
_result.emailProviders.addAll(emailProviders);
}
if (selectedEmailProvider != null) {
_result.selectedEmailProvider = selectedEmailProvider;
}
if (textProviders != null) {
_result.textProviders.addAll(textProviders);
}
if (selectedTextProvider != null) {
_result.selectedTextProvider = selectedTextProvider;
}
if (supportedLoginMechanisms != null) {
_result.supportedLoginMechanisms.addAll(supportedLoginMechanisms);
}
if (templates != null) {
_result.templates.addAll(templates);
}
if (accessTokenExpiry != null) {
_result.accessTokenExpiry = accessTokenExpiry;
}
if (refreshTokenExpiry != null) {
_result.refreshTokenExpiry = refreshTokenExpiry;
}
if (verificationCodeExpiry != null) {
_result.verificationCodeExpiry = verificationCodeExpiry;
}
if (passwordUpdatedAt != null) {
_result.passwordUpdatedAt = passwordUpdatedAt;
}
if (callbacks != null) {
_result.callbacks.addAll(callbacks);
}
if (emailConfigured != null) {
_result.emailConfigured = emailConfigured;
}
if (textConfigured != null) {
_result.textConfigured = textConfigured;
}
return _result;
}