AuthFactor constructor

AuthFactor({
  1. AuthFactorState? state,
  2. AuthFactorOTP? otp,
  3. AuthFactorU2F? u2f,
})

Implementation

factory AuthFactor({
  AuthFactorState? state,
  AuthFactorOTP? otp,
  AuthFactorU2F? u2f,
}) {
  final _result = create();
  if (state != null) {
    _result.state = state;
  }
  if (otp != null) {
    _result.otp = otp;
  }
  if (u2f != null) {
    _result.u2f = u2f;
  }
  return _result;
}