QueryModel class

A base class for all query models.

This class provides a common structure for all query models, including a page number and an amount. It also provides a method to convert the query model to a JSON object, which can be used when making HTTP requests.

All query models should inherit from this class and add any additional properties that they need.

Implementers

Constructors

QueryModel({int? page, int? amount, Status? status})
Creates a new instance of QueryModel.

Properties

amount int?
The amount of items to be fetched in the query.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
page int?
The page number for the query.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status Status?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the QueryModel to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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