func (descriptor *PublicKeyCredentialDescriptor) UnmarshalJSON(raw []byte) error {
	type Override PublicKeyCredentialDescriptor
	var override struct {
		Override
		ID string `json:"id"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}

	*descriptor = PublicKeyCredentialDescriptor(override.Override)
	descriptor.ID, err = fromBase64URL(override.ID)
	return err
}
// UnmarshalJSON unmarshals the PublicKeyCredentialDescriptor as JSON.
UnmarshalJSON unmarshals the PublicKeyCredentialDescriptor as JSON.
// UnmarshalJSON unmarshals the PublicKeyCredentialDescriptor as JSON .
func (descriptor *PublicKeyCredentialDescriptor) UnmarshalJSON(raw []byte) error {
	type Override PublicKeyCredentialDescriptor
	var override struct {
		Override
		ID string `json:"id"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}
	*descriptor = PublicKeyCredentialDescriptor(override.Override)
	descriptor.ID, err = fromBase64URL(override.ID)
	return err
}
func ( descriptor * PublicKeyCredentialDescriptor ) UnmarshalJSON ( raw [ ] byte ) error { type Override PublicKeyCredentialDescriptor var override struct { Override ID string `json:"id"` } err := json . Unmarshal ( raw , & override ) if err != nil { return err } * descriptor = PublicKeyCredentialDescriptor ( override . Override ) descriptor . ID , err = fromBase64URL ( override . ID ) return err }
UnmarshalJSON unmarshals the PublicKeyCredentialDescriptor as JSON.
UnmarshalJSON unmarshals the PublicKeyCredentialDescriptor as JSON .