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