CreateResponseDetails constructor

CreateResponseDetails({
  1. required int requestId,
  2. DOMExceptionDetails? error,
  3. String? responseJson,
})

Implementation

CreateResponseDetails({
  /// The `requestId` of the `CreateRequest`.
  required int requestId,

  /// The `DOMException` yielded by the remote request, if any.
  DOMExceptionDetails? error,

  /// The `PublicKeyCredential`, yielded by the remote request, if
  /// any, serialized as a JSON string by calling
  /// href="https://w3c.github.io/webauthn/#dom-publickeycredential-tojson">
  /// `PublicKeyCredential.toJSON()`</a>.
  String? responseJson,
}) : _wrapped = $js.CreateResponseDetails(
        requestId: requestId,
        error: error?.toJS,
        responseJson: responseJson,
      );