HeraConfig constructor

HeraConfig({
  1. String? name,
  2. bool? enableSignup,
  3. bool? enableLogin,
  4. Timestamp? createdAt,
  5. Timestamp? updatedAt,
  6. bool? validatePassword,
  7. String? publicKey,
  8. HashingAlgorithm? hashingAlgorithm,
  9. Bcrypt? bcrypt,
  10. Scrypt? scrypt,
  11. Iterable<LoginType>? supportedLoginMechanisms,
  12. Map<String, Template>? templates,
  13. int? accessTokenExpiry,
  14. int? refreshTokenExpiry,
  15. int? verificationCodeExpiry,
  16. Iterable<String>? callbacks,
  17. String? id,
  18. 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;
}