features/characters_list / com.vmadalin.dynamicfeatures.characterslist.ui.detail.model / CharacterDetailMapper / map

map

suspend fun map(from: BaseResponse<CharacterResponse>): CharacterDetail

Transform network response to CharacterDetail.

Parameters

from - Network characters response.

Exceptions

NoSuchElementException - If the response results are empty.

Return
List of parsed characters items.