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,
})

Implementation

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