fromData
Creates a successful result containing the specified data.
This factory method constructs a Result instance representing a successful operation. The created result will have isSuccess return true, getData return the provided data, and getException return null.
Note: This is an internal SDK method. Application developers typically don't need to create Result instances directly as they are provided by SDK callback methods.
Return
a Result instance representing a successful operation with the given data
Parameters
data
the data to wrap in a successful result (may be null for Void operations)
<T>
the type of success data
<E>
the type of exception (not used in successful results)