func (response *AuthenticatorAttestationResponse) UnmarshalJSON(raw []byte) error {
	type Override AuthenticatorAttestationResponse
	var override struct {
		Override
		ClientDataJSON    string `json:"clientDataJSON"`
		AttestationObject string `json:"attestationObject"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}

	*response = AuthenticatorAttestationResponse(override.Override)
	response.ClientDataJSON, err = fromBase64URL(override.ClientDataJSON)
	if err != nil {
		return err
	}
	response.AttestationObject, err = fromBase64URL(override.AttestationObject)
	if err != nil {
		return err
	}
	return nil
}
// UnmarshalJSON unmarshals the AuthenticatorAttestationResponse as JSON.
UnmarshalJSON unmarshals the AuthenticatorAttestationResponse as JSON.
// UnmarshalJSON unmarshals the AuthenticatorAttestationResponse as JSON .
func (response *AuthenticatorAttestationResponse) UnmarshalJSON(raw []byte) error {
	type Override AuthenticatorAttestationResponse
	var override struct {
		Override
		ClientDataJSON    string `json:"clientDataJSON"`
		AttestationObject string `json:"attestationObject"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}
	*response = AuthenticatorAttestationResponse(override.Override)
	response.ClientDataJSON, err = fromBase64URL(override.ClientDataJSON)
	if err != nil {
		return err
	}
	response.AttestationObject, err = fromBase64URL(override.AttestationObject)
	if err != nil {
		return err
	}
	return nil
}
func ( response * AuthenticatorAttestationResponse ) UnmarshalJSON ( raw [ ] byte ) error { type Override AuthenticatorAttestationResponse var override struct { Override ClientDataJSON string `json:"clientDataJSON"` AttestationObject string `json:"attestationObject"` } err := json . Unmarshal ( raw , & override ) if err != nil { return err } * response = AuthenticatorAttestationResponse ( override . Override ) response . ClientDataJSON , err = fromBase64URL ( override . ClientDataJSON ) if err != nil { return err } response . AttestationObject , err = fromBase64URL ( override . AttestationObject ) if err != nil { return err } return nil }
UnmarshalJSON unmarshals the AuthenticatorAttestationResponse as JSON.
UnmarshalJSON unmarshals the AuthenticatorAttestationResponse as JSON .