func (descriptor PublicKeyCredentialDescriptor) MarshalJSON() ([]byte, error) {
	type Override PublicKeyCredentialDescriptor
	return json.Marshal(struct {
		Override
		ID string `json:"id"`
	}{
		Override: Override(descriptor),
		ID:       toBase64URL(descriptor.ID),
	})
}
// MarshalJSON marshals the PublicKeyCredentialDescriptor as JSON.
MarshalJSON marshals the PublicKeyCredentialDescriptor as JSON.
// MarshalJSON marshals the PublicKeyCredentialDescriptor as JSON .
func (descriptor PublicKeyCredentialDescriptor) MarshalJSON() ([]byte, error) {
	type Override PublicKeyCredentialDescriptor
	return json.Marshal(struct {
		Override
		ID string `json:"id"`
	}{
		Override: Override(descriptor),
		ID:       toBase64URL(descriptor.ID),
	})
}
func ( descriptor PublicKeyCredentialDescriptor ) MarshalJSON ( ) ( [ ] byte , error ) { type Override PublicKeyCredentialDescriptor return json . Marshal ( struct { Override ID string `json:"id"` } { Override : Override ( descriptor ) , ID : toBase64URL ( descriptor . ID ) , } ) }
MarshalJSON marshals the PublicKeyCredentialDescriptor as JSON.
MarshalJSON marshals the PublicKeyCredentialDescriptor as JSON .