AddCustomLoginPolicyRequest constructor

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

Implementation

factory AddCustomLoginPolicyRequest({
  $core.bool? allowUsernamePassword,
  $core.bool? allowRegister,
  $core.bool? allowExternalIdp,
  $core.bool? forceMfa,
  $14.PasswordlessType? passwordlessType,
  $core.bool? hidePasswordReset,
  $core.bool? ignoreUnknownUsernames,
  $core.String? defaultRedirectUri,
  $4.Duration? passwordCheckLifetime,
  $4.Duration? externalLoginCheckLifetime,
  $4.Duration? mfaInitSkipLifetime,
  $4.Duration? secondFactorCheckLifetime,
  $4.Duration? multiFactorCheckLifetime,
  $core.Iterable<$14.SecondFactorType>? secondFactors,
  $core.Iterable<$14.MultiFactorType>? multiFactors,
  $core.Iterable<AddCustomLoginPolicyRequest_IDP>? idps,
  $core.bool? allowDomainDiscovery,
  $core.bool? disableLoginWithEmail,
  $core.bool? disableLoginWithPhone,
  $core.bool? forceMfaLocalOnly,
}) {
  final result = create();
  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 (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;
  if (forceMfaLocalOnly != null) result.forceMfaLocalOnly = forceMfaLocalOnly;
  return result;
}