Checks constructor

Checks({
  1. CheckUser? user,
  2. CheckPassword? password,
  3. CheckWebAuthN? webAuthN,
  4. CheckIDPIntent? idpIntent,
  5. CheckTOTP? totp,
  6. CheckOTP? otpSms,
  7. CheckOTP? otpEmail,
})

Implementation

factory Checks({
  CheckUser? user,
  CheckPassword? password,
  CheckWebAuthN? webAuthN,
  CheckIDPIntent? idpIntent,
  CheckTOTP? totp,
  CheckOTP? otpSms,
  CheckOTP? otpEmail,
}) {
  final $result = create();
  if (user != null) {
    $result.user = user;
  }
  if (password != null) {
    $result.password = password;
  }
  if (webAuthN != null) {
    $result.webAuthN = webAuthN;
  }
  if (idpIntent != null) {
    $result.idpIntent = idpIntent;
  }
  if (totp != null) {
    $result.totp = totp;
  }
  if (otpSms != null) {
    $result.otpSms = otpSms;
  }
  if (otpEmail != null) {
    $result.otpEmail = otpEmail;
  }
  return $result;
}