SuccessResponse<T> class

Inheritance

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

data → T?
final
hashCode int
The hash code for this object.
no setterinherited
message String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ResponseStatus
finalinherited
success bool
finalinherited

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