LoginPolicy constructor

LoginPolicy({
  1. ObjectDetails? details,
  2. bool? allowUsernamePassword,
  3. bool? allowRegister,
  4. bool? allowExternalIdp,
  5. bool? forceMfa,
  6. PasswordlessType? passwordlessType,
  7. bool? isDefault,
  8. bool? hidePasswordReset,
  9. bool? ignoreUnknownUsernames,
  10. String? defaultRedirectUri,
  11. Duration? passwordCheckLifetime,
  12. Duration? externalLoginCheckLifetime,
  13. Duration? mfaInitSkipLifetime,
  14. Duration? secondFactorCheckLifetime,
  15. Duration? multiFactorCheckLifetime,
  16. Iterable<SecondFactorType>? secondFactors,
  17. Iterable<MultiFactorType>? multiFactors,
  18. Iterable<IDPLoginPolicyLink>? idps,
  19. bool? allowDomainDiscovery,
  20. bool? disableLoginWithEmail,
  21. bool? disableLoginWithPhone,
})

Implementation

factory LoginPolicy({
  $7.ObjectDetails? details,
  $core.bool? allowUsernamePassword,
  $core.bool? allowRegister,
  $core.bool? allowExternalIdp,
  $core.bool? forceMfa,
  PasswordlessType? passwordlessType,
  $core.bool? isDefault,
  $core.bool? hidePasswordReset,
  $core.bool? ignoreUnknownUsernames,
  $core.String? defaultRedirectUri,
  $10.Duration? passwordCheckLifetime,
  $10.Duration? externalLoginCheckLifetime,
  $10.Duration? mfaInitSkipLifetime,
  $10.Duration? secondFactorCheckLifetime,
  $10.Duration? multiFactorCheckLifetime,
  $core.Iterable<SecondFactorType>? secondFactors,
  $core.Iterable<MultiFactorType>? multiFactors,
  $core.Iterable<$11.IDPLoginPolicyLink>? idps,
  $core.bool? allowDomainDiscovery,
  $core.bool? disableLoginWithEmail,
  $core.bool? disableLoginWithPhone,
}) {
  final _result = create();
  if (details != null) {
    _result.details = details;
  }
  if (allowUsernamePassword != null) {
    _result.allowUsernamePassword = allowUsernamePassword;
  }
  if (allowRegister != null) {
    _result.allowRegister = allowRegister;
  }
  if (allowExternalIdp != null) {
    _result.allowExternalIdp = allowExternalIdp;
  }
  if (forceMfa != null) {
    _result.forceMfa = forceMfa;
  }
  if (passwordlessType != null) {
    _result.passwordlessType = passwordlessType;
  }
  if (isDefault != null) {
    _result.isDefault = isDefault;
  }
  if (hidePasswordReset != null) {
    _result.hidePasswordReset = hidePasswordReset;
  }
  if (ignoreUnknownUsernames != null) {
    _result.ignoreUnknownUsernames = ignoreUnknownUsernames;
  }
  if (defaultRedirectUri != null) {
    _result.defaultRedirectUri = defaultRedirectUri;
  }
  if (passwordCheckLifetime != null) {
    _result.passwordCheckLifetime = passwordCheckLifetime;
  }
  if (externalLoginCheckLifetime != null) {
    _result.externalLoginCheckLifetime = externalLoginCheckLifetime;
  }
  if (mfaInitSkipLifetime != null) {
    _result.mfaInitSkipLifetime = mfaInitSkipLifetime;
  }
  if (secondFactorCheckLifetime != null) {
    _result.secondFactorCheckLifetime = secondFactorCheckLifetime;
  }
  if (multiFactorCheckLifetime != null) {
    _result.multiFactorCheckLifetime = multiFactorCheckLifetime;
  }
  if (secondFactors != null) {
    _result.secondFactors.addAll(secondFactors);
  }
  if (multiFactors != null) {
    _result.multiFactors.addAll(multiFactors);
  }
  if (idps != null) {
    _result.idps.addAll(idps);
  }
  if (allowDomainDiscovery != null) {
    _result.allowDomainDiscovery = allowDomainDiscovery;
  }
  if (disableLoginWithEmail != null) {
    _result.disableLoginWithEmail = disableLoginWithEmail;
  }
  if (disableLoginWithPhone != null) {
    _result.disableLoginWithPhone = disableLoginWithPhone;
  }
  return _result;
}