code: func (spaceSummary *SpaceSummary) UnmarshalJSON(data []byte) error {
  	var ccSpaceSummary struct {
  		Applications     []SpaceSummaryApplication     `json:"apps"`
  		Name             string                        `json:"name"`
  		ServiceInstances []SpaceSummaryServiceInstance `json:"services"`
  	}
  	err := cloudcontroller.DecodeJSON(data, &ccSpaceSummary)
  	if err != nil {
  		return err
  	}
  
  	spaceSummary.Name = ccSpaceSummary.Name
  	spaceSummary.Applications = ccSpaceSummary.Applications
  	spaceSummary.ServiceInstances = ccSpaceSummary.ServiceInstances
  
  	return nil
  }
docs: // UnmarshalJSON helps unmarshal a Cloud Controller Space Summary response.