ApiErrorModelMapper

fun interface ApiErrorModelMapper<V>

Author

skydoves (Jaewoong Eum)

A mapper interface for mapping ApiResponse.Failure.Error 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.Failure.Error<*>): V

maps the ApiResponse.Failure.Error to the V using the mapper.