mapFromSegmentData

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

segmentData

The segment response from the API.