ResponseListDTO<T extends BaseDTO> class
A class for handling response lists.
This class represents a response list, with a list of items, count, status, message, and error. It also provides methods to convert the response list to and from a JSON object.
Constructors
-
ResponseListDTO({required ResponseModel response, required dynamic fromJson(Map<
String, dynamic> )}) - Creates a new instance of ResponseListDTO.
Properties
- count ↔ int?
-
The count of the items in the response list.
getter/setter pair
- error → dynamic
-
no setter
-
fromJson
→ dynamic Function(Map<
String, dynamic> ) -
The function to convert the items from a JSON object.
final
- hasError → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
↔ List<
T> -
The items of the response list.
getter/setter pair
- message → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int?
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the ResponseListDTO to a JSON object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited