onSuccess

inline fun <T : Any> ApiResult<T>.onSuccess(block: (T) -> Unit): ApiResult<T>