func (serviceBinding *ServiceBinding) UnmarshalJSON(data []byte) error {
	var ccServiceBinding struct {
		Metadata internal.Metadata
		Entity   struct {
			AppGUID             string `json:"app_guid"`
			ServiceInstanceGUID string `json:"service_instance_guid"`
		} `json:"entity"`
	}
	err := json.Unmarshal(data, &ccServiceBinding)
	if err != nil {
		return err
	}
	serviceBinding.AppGUID = ccServiceBinding.Entity.AppGUID
	serviceBinding.GUID = ccServiceBinding.Metadata.GUID
	serviceBinding.ServiceInstanceGUID = ccServiceBinding.Entity.ServiceInstanceGUID
	return nil
}
UnmarshalJSON helps unmarshal a Cloud Controller Service Binding response.
package ccv2
import (
	"bytes"
	"encoding/json"
	"code.cloudfoundry.org/cli/api/cloudcontroller"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccerror"
	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/internal"
)
type ServiceBinding struct {
	GUID                string
	AppGUID             string
	ServiceInstanceGUID string
}