getOrNull

fun getOrNull(): T?

Returns the data if this is a Success response, or null otherwise.

Return

The data if successful, null otherwise.