getSuccessDataOrNull

fun getSuccessDataOrNull(): T?

Get the data from a Success result, or null if this result is a Failure

Intended mainly for Java callers. Kotlin code should prefer using a when statement for increased type-safety