// Convert response payload's included array and to a <type>.<id>: resource map
Convert response payload's included array and to a .: resource map
// Convert response payload ' s included array and to a <type > . <id > : resource map
func makeIncludedMap(
	includedPayload []PayloadResource,
	API *Connection,
) (map[string]Resource, error) {
	result := make(map[string]Resource)
	for _, payloadResource := range includedPayload {
		includedResource, err := payloadToResource(payloadResource, nil, API)
		if err != nil {
			return result, err
		}
		key := fmt.Sprintf("%s:%s", includedResource.Type, includedResource.Id)
		result[key] = includedResource
	}
	return result, nil
}
func makeIncludedMap ( includedPayload [ ] PayloadResource , API * Connection , ) ( map [ string ] Resource , error ) { result := make ( map [ string ] Resource ) for _ , payloadResource := range includedPayload { includedResource , err := payloadToResource ( payloadResource , nil , API ) if err != nil { return result , err } key := fmt . Sprintf ( " " , includedResource . Type , includedResource . Id ) result [ key ] = includedResource } return result , nil }
Convert response payload's included array and to a .
Convert response payload ' s included array and to a .