Factors constructor

Factors({
  1. UserFactor? user,
  2. PasswordFactor? password,
  3. WebAuthNFactor? webAuthN,
  4. IntentFactor? intent,
  5. TOTPFactor? totp,
  6. OTPFactor? otpSms,
  7. OTPFactor? otpEmail,
})

Implementation

factory Factors({
  UserFactor? user,
  PasswordFactor? password,
  WebAuthNFactor? webAuthN,
  IntentFactor? intent,
  TOTPFactor? totp,
  OTPFactor? otpSms,
  OTPFactor? otpEmail,
}) {
  final $result = create();
  if (user != null) {
    $result.user = user;
  }
  if (password != null) {
    $result.password = password;
  }
  if (webAuthN != null) {
    $result.webAuthN = webAuthN;
  }
  if (intent != null) {
    $result.intent = intent;
  }
  if (totp != null) {
    $result.totp = totp;
  }
  if (otpSms != null) {
    $result.otpSms = otpSms;
  }
  if (otpEmail != null) {
    $result.otpEmail = otpEmail;
  }
  return $result;
}