SuccessResponse<T> class
final
Represents a successful API call.
Contains the generic data result of type T.
- Inheritance
-
- Object
- AppResponse<
T> - SuccessResponse
Constructors
- SuccessResponse({required bool status, required int statusCode, required String message, required T data, required String error})
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the success response back to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited