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,
  22. bool? forceMfaLocalOnly,
})

Implementation

factory LoginPolicy({
  $8.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,
  $7.Duration? passwordCheckLifetime,
  $7.Duration? externalLoginCheckLifetime,
  $7.Duration? mfaInitSkipLifetime,
  $7.Duration? secondFactorCheckLifetime,
  $7.Duration? multiFactorCheckLifetime,
  $core.Iterable<SecondFactorType>? secondFactors,
  $core.Iterable<MultiFactorType>? multiFactors,
  $core.Iterable<$10.IDPLoginPolicyLink>? idps,
  $core.bool? allowDomainDiscovery,
  $core.bool? disableLoginWithEmail,
  $core.bool? disableLoginWithPhone,
  $core.bool? forceMfaLocalOnly,
}) {
  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;
  }
  if (forceMfaLocalOnly != null) {
    $result.forceMfaLocalOnly = forceMfaLocalOnly;
  }
  return $result;
}