SuccessResponse<T> class
- Inheritance
-
- Object
- ApiResponse
- SuccessResponse
Constructors
- SuccessResponse({required ResponseStatus status, required String message, T? data})
-
const
- SuccessResponse.created({String message = "Resource created", T? data})
-
factory
- SuccessResponse.noContent({String message = "No content"})
-
factory
- SuccessResponse.ok({String message = "Request successful", T? data})
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited