LockoutSettings constructor

LockoutSettings({
  1. Int64? maxPasswordAttempts,
  2. ResourceOwnerType? resourceOwnerType,
  3. Int64? maxOtpAttempts,
})

Implementation

factory LockoutSettings({
  $fixnum.Int64? maxPasswordAttempts,
  $0.ResourceOwnerType? resourceOwnerType,
  $fixnum.Int64? maxOtpAttempts,
}) {
  final result = create();
  if (maxPasswordAttempts != null)
    result.maxPasswordAttempts = maxPasswordAttempts;
  if (resourceOwnerType != null) result.resourceOwnerType = resourceOwnerType;
  if (maxOtpAttempts != null) result.maxOtpAttempts = maxOtpAttempts;
  return result;
}