getOrNull

open fun getOrNull(): T?

Returns the value of a Success or null if the outcome is a Failure.

Return

The value if successful, or null if failed.