map

infix inline fun <T, R> ApiResult<T>.map(block: (T) -> R): ApiResult<R>

Change the type of the Success to R without affecting Error/Loading results

See also