Config constructor

Config({
  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. Map<String, OidcProvider>? oidcProviders,
  12. Map<String, EmailProvider>? emailProviders,
  13. EmailProviderType? selectedEmailProvider,
  14. Map<String, TextProvider>? textProviders,
  15. TextProviderType? selectedTextProvider,
  16. Iterable<LoginType>? supportedLoginMechanisms,
  17. Map<String, Template>? templates,
  18. int? accessTokenExpiry,
  19. int? refreshTokenExpiry,
  20. int? verificationCodeExpiry,
  21. Timestamp? passwordUpdatedAt,
  22. Iterable<String>? callbacks,
  23. bool? emailConfigured,
  24. 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;
}