code: func (a *Application) UnmarshalJSON(data []byte) error {
  	lifecycle := ccLifecycle{}
  	ccApp := ccApplication{
  		Lifecycle: &lifecycle,
  	}
  
  	err := cloudcontroller.DecodeJSON(data, &ccApp)
  	if err != nil {
  		return err
  	}
  
  	a.GUID = ccApp.GUID
  	a.StackName = lifecycle.Data.Stack
  	a.LifecycleBuildpacks = lifecycle.Data.Buildpacks
  	a.LifecycleType = lifecycle.Type
  	a.Name = ccApp.Name
  	a.Relationships = ccApp.Relationships
  	a.State = ccApp.State
  	a.Metadata = ccApp.Metadata
  
  	return nil
  }
docs: // UnmarshalJSON helps unmarshal a Cloud Controller Application response.