from Discovery Venue Response
fun fromDiscoveryVenueResponse(venues: List<DiscoveryVenueDetailsResponse>?, id: String, marketDomain: TMMarketDomain): DiscoveryVenue
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.
market Domain
The market domain for the venue.