getOrNull

fun getOrNull(): Any?

Retrieves the stored data if the result is a success, or returns null if it is a failure.

Return

the data contained in this result if it is a Success, or null if it is a Failure.