ResultList<M extends Jsonable> class

Response DTO of a generic paginated list.

Implemented types
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

ResultList({int page = 0, int perPage = 0, int totalItems = 0, int totalPages = 0, List<M> items = const []})
ResultList.fromJson(Map<String, dynamic> json, ListItemFactory<Jsonable> itemFactoryFunc)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<M>
getter/setter pair
page int
getter/setter pair
perPage int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalItems int
getter/setter pair
totalPages int
getter/setter pair

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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited