ApiSuccessModelMapper

fun interface ApiSuccessModelMapper<T, V>

Author

skydoves (Jaewoong Eum)

A mapper interface for mapping ApiResponse.Success response as a custom V instance model.

See also

(https://github.com/skydoves/sandwich#apierrormodelmapper)

Functions

Link copied to clipboard
abstract fun map(apiErrorResponse: ApiResponse.Success<T>): V

maps the ApiResponse.Success to the V using the mapper.