package itemoccurrences type extractionResponse struct { Occurrences []itemOccurrenceResponse `json:"occurrences"` } type itemOccurrenceResponse struct { Name string `json:"name"` Kind string `json:"kind"` Quantity *int `json:"quantity,omitempty"` From string `json:"from,omitempty"` To string `json:"to,omitempty"` SourceRefs []itemOccurrenceSourceRefResponse `json:"source_refs"` } type itemOccurrenceSourceRefResponse struct { StartUnitID int `json:"start_unit_id"` EndUnitID int `json:"end_unit_id"` }