onSuccessSuspend

suspend fun <T> ApiResult<T>.onSuccessSuspend(function: suspend (model: T) -> Unit): ApiResult<T>