requireNotNull

inline fun <T> ApiResult<T?>?.requireNotNull(): ApiResult<T & Any>

Alias for errorOnNull