PromotionsApiQuery class
The PromotionsApiQuery class is a subclass of BaseApiQuery that allows for filtering promotions
by status and type.
- Inheritance
-
- Object
- BaseApiQuery
- PromotionsApiQuery
Constructors
-
PromotionsApiQuery({required List<
PromotionStatus> statuses, required List<PromotionType> types, required List<ApiQuerySorting> sorting, required int limit, required int page, required bool includeMeta}) - PromotionsApiQuery.fromMap(Map map)
-
This is a named constructor in the
PromotionsApiQueryclass that allows creating an instance of the class from aMapobject.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeMeta ↔ bool
-
getter/setter pairinherited
- limit ↔ int
-
getter/setter pairinherited
- page ↔ int
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sorting
↔ List<
ApiQuerySorting> -
getter/setter pairinherited
-
statuses
↔ List<
PromotionStatus> -
getter/setter pair
-
types
↔ List<
PromotionType> -
getter/setter pair
Methods
-
asMap(
) → Map - The function returns a map containing serialized lists of statuses, types, and sorting, as well as limit, page, and includeMeta values.
-
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