func (requestOptions PublicKeyCredentialRequestOptions) MarshalJSON() ([]byte, error) {
	type Override PublicKeyCredentialRequestOptions
	return json.Marshal(struct {
		Override
		Challenge string `json:"challenge"`
		Timeout   int64  `json:"timeout"`
	}{
		Override:  Override(requestOptions),
		Challenge: toBase64URL(requestOptions.Challenge),
		Timeout:   requestOptions.Timeout.Milliseconds(),
	})
}
// MarshalJSON marshals the PublicKeyCredentialRequestOptions as JSON.
MarshalJSON marshals the PublicKeyCredentialRequestOptions as JSON.
// MarshalJSON marshals the PublicKeyCredentialRequestOptions as JSON .
func (requestOptions PublicKeyCredentialRequestOptions) MarshalJSON() ([]byte, error) {
	type Override PublicKeyCredentialRequestOptions
	return json.Marshal(struct {
		Override
		Challenge string `json:"challenge"`
		Timeout   int64  `json:"timeout"`
	}{
		Override:  Override(requestOptions),
		Challenge: toBase64URL(requestOptions.Challenge),
		Timeout:   requestOptions.Timeout.Milliseconds(),
	})
}
func ( requestOptions PublicKeyCredentialRequestOptions ) MarshalJSON ( ) ( [ ] byte , error ) { type Override PublicKeyCredentialRequestOptions return json . Marshal ( struct { Override Challenge string `json:"challenge"` Timeout int64 `json:"timeout"` } { Override : Override ( requestOptions ) , Challenge : toBase64URL ( requestOptions . Challenge ) , Timeout : requestOptions . Timeout . Milliseconds ( ) , } ) }
MarshalJSON marshals the PublicKeyCredentialRequestOptions as JSON.
MarshalJSON marshals the PublicKeyCredentialRequestOptions as JSON .