Sealed class representing a resource with a status. It can be either Success, Error, or Loading.
The type of the data.
Class representing an erroneous resource.
Class representing a loading resource.
Class representing a successful resource.
The data of the resource. It can be null.
The message of the resource. It can be null.