DeviceAuthMessage constructor

DeviceAuthMessage({
  1. AuthChallenge? challenge,
  2. AuthResponse? response,
  3. AuthError? error,
})

Implementation

factory DeviceAuthMessage({
  AuthChallenge? challenge,
  AuthResponse? response,
  AuthError? error,
}) {
  final _result = create();
  if (challenge != null) {
    _result.challenge = challenge;
  }
  if (response != null) {
    _result.response = response;
  }
  if (error != null) {
    _result.error = error;
  }
  return _result;
}