mapFromDiscoveryImageDataList

Maps a list of image responses to a list of DiscoveryImageMetadata objects.

Converts a list of DiscoveryImageResponse to DiscoveryImageMetadata, filtering and sorting by specific criteria. Returns null if the input is null.

Return

A list of DiscoveryImageMetadata objects, or null if the input is null.

Parameters

imageList

The list of image responses from the API.