HeraConfig constructor
HeraConfig({
- String? name,
- Image? logo,
- bool? enableSignup,
- bool? enableLogin,
- Timestamp? createdAt,
- Timestamp? updatedAt,
- bool? validatePassword,
- String? publicKey,
- HashingAlgorithm? hashingAlgorithm,
- Bcrypt? bcrypt,
- Scrypt? scrypt,
- Iterable<
LoginType> ? supportedLoginMechanisms, - Map<
String, Template> ? templates, - int? accessTokenExpiry,
- int? refreshTokenExpiry,
- int? verificationCodeExpiry,
- Iterable<
String> ? callbacks, - String? id,
- Map<
String, OidcProvider> ? oidcProviders,
Implementation
factory HeraConfig({
$core.String? name,
$1.Image? logo,
$core.bool? enableSignup,
$core.bool? enableLogin,
$2.Timestamp? createdAt,
$2.Timestamp? updatedAt,
$core.bool? validatePassword,
$core.String? publicKey,
HashingAlgorithm? hashingAlgorithm,
Bcrypt? bcrypt,
Scrypt? scrypt,
$core.Iterable<LoginType>? supportedLoginMechanisms,
$core.Map<$core.String, Template>? templates,
$core.int? accessTokenExpiry,
$core.int? refreshTokenExpiry,
$core.int? verificationCodeExpiry,
$core.Iterable<$core.String>? callbacks,
$core.String? id,
$core.Map<$core.String, OidcProvider>? oidcProviders,
}) {
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 (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 (callbacks != null) {
_result.callbacks.addAll(callbacks);
}
if (id != null) {
_result.id = id;
}
if (oidcProviders != null) {
_result.oidcProviders.addAll(oidcProviders);
}
return _result;
}