map From Segment Data
Maps a segment response to a DiscoveryClassificationItem.
Converts a SegmentResponse to a DiscoveryClassificationItem with its ID and name.
Return
A DiscoveryClassificationItem with the mapped data.
Parameters
segment Data
The segment response from the API.