getData

abstract fun getData(): T

Returns the associated data if the result is a success, `null` otherwise.