AuthFactor constructor

AuthFactor({
  1. AuthFactorState? state,
  2. AuthFactorOTP? otp,
  3. AuthFactorU2F? u2f,
  4. AuthFactorOTPSMS? otpSms,
  5. AuthFactorOTPEmail? otpEmail,
})

Implementation

factory AuthFactor({
  AuthFactorState? state,
  AuthFactorOTP? otp,
  AuthFactorU2F? u2f,
  AuthFactorOTPSMS? otpSms,
  AuthFactorOTPEmail? otpEmail,
}) {
  final $result = create();
  if (state != null) {
    $result.state = state;
  }
  if (otp != null) {
    $result.otp = otp;
  }
  if (u2f != null) {
    $result.u2f = u2f;
  }
  if (otpSms != null) {
    $result.otpSms = otpSms;
  }
  if (otpEmail != null) {
    $result.otpEmail = otpEmail;
  }
  return $result;
}