ResponseModel<T> class
Response wrapper model for standardized API responses Inspired by clean architecture patterns for consistent response handling
Constructors
-
ResponseModel.new({T? data, String? message, bool success = true, int? statusCode, Map<
String, dynamic> ? meta}) -
ResponseModel.fromJson(Map<
String, dynamic> json, T decoder(dynamic)?) -
factory
- ResponseModel.fromResponse(Response response, T decoder(dynamic)?)
-
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited