ApiReturn class
A class that represents the result of an API call.
This class encapsulates the success status, return code, explanation, and optional data returned from the API.
Constructors
Properties
- data ↔ dynamic
-
Optional data returned by the API, if any.
getter/setter pair
- explanation ↔ String
-
A description or explanation of the result from the API.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- returnCode ↔ int
-
The return code from the API call (e.g., HTTP status code).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- success ↔ bool
-
Indicates whether the API call was successful.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Converts the
ApiReturnobject into its string representation.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited