map From Discovery Image Data List
fun mapFromDiscoveryImageDataList(imageList: List<DiscoveryImageResponse>?): List<DiscoveryImageMetadata>?
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
image List
The list of image responses from the API.