Factors constructor
Factors({
- UserFactor? user,
- PasswordFactor? password,
- WebAuthNFactor? webAuthN,
- IntentFactor? intent,
- TOTPFactor? totp,
- OTPFactor? otpSms,
- 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;
}