features/characters_list / com.vmadalin.dynamicfeatures.characterslist.ui.list.model / CharacterItemMapper

CharacterItemMapper

open class CharacterItemMapper : Mapper<BaseResponse<CharacterResponse>, List<CharacterItem>>

Helper class to transforms network response to visual model, catching the necessary data.

See Also

Mapper

Constructors

<init>

Helper class to transforms network response to visual model, catching the necessary data.

CharacterItemMapper()

Functions

map

Transform network response to CharacterItem.

open suspend fun map(from: BaseResponse<CharacterResponse>): List<CharacterItem>