fromDiscoveryVenueResponse

Maps a list of venue details responses to a single DiscoveryVenue object.

This method processes a list of DiscoveryVenueDetailsResponse objects, selecting the venue that matches the provided ID based on its references. It constructs a DiscoveryVenue object with the relevant data, including address, location, and other venue-specific details.

Return

A DiscoveryVenue object populated with the mapped data.

Parameters

venues

The list of venue details responses from the API.

id

The ID to match against the venue references.

marketDomain

The market domain for the venue.