Promotion class
The Promotion class represents a promotional offer with various properties such as discount type, redemption limits, and expiration dates.
Constructors
- Promotion.fromMap(Map map)
-
Promotion.fromMap(Map map)is a factory constructor that creates a new instance of thePromotionclass from aMapobject. It takes aMapobject as an argument and uses the values from the map to initialize the properties of thePromotionobject. It returns a new instance of thePromotionclass with the properties set to the values from theMap.
Properties
- activationCounter ↔ int?
-
getter/setter pair
- assignedAt ↔ DateTime?
-
getter/setter pair
-
catalogIndexItems
↔ List<
String> ? -
getter/setter pair
- code ↔ String
-
getter/setter pair
- currentRedeemedQuantity ↔ int?
-
getter/setter pair
- currentRedeemLimit ↔ int?
-
getter/setter pair
- descriptionText ↔ String?
-
getter/setter pair
- details ↔ PromotionDetails?
-
getter/setter pair
- discountMode ↔ PromotionDiscountMode
-
getter/setter pair
- discountModeDetails ↔ PromotionDiscountModeDetails?
-
getter/setter pair
- discountType ↔ PromotionDiscountType
-
getter/setter pair
- discountValue ↔ int?
-
getter/setter pair
- displayFrom ↔ String?
-
getter/setter pair
- displayTo ↔ String?
-
getter/setter pair
- expireAt ↔ DateTime?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline ↔ String?
-
getter/setter pair
-
images
↔ List<
PromotionImage> ? -
getter/setter pair
- itemScope ↔ PromotionItemScope
-
getter/setter pair
- lastingAt ↔ DateTime?
-
getter/setter pair
- lastingTime ↔ int?
-
getter/setter pair
- maxBasketValue ↔ int?
-
getter/setter pair
- minBasketValue ↔ int?
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
-
params
↔ Map<
String, Object> ? -
getter/setter pair
- possibleRedeems ↔ int?
-
getter/setter pair
- price ↔ int
-
getter/setter pair
- priority ↔ int
-
getter/setter pair
- redeemLimitPerClient ↔ int?
-
getter/setter pair
- redeemQuantityPerActivation ↔ int?
-
getter/setter pair
- requireRedeemedPoints ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAt ↔ DateTime?
-
getter/setter pair
- status ↔ PromotionStatus
-
getter/setter pair
-
getter/setter pair
- type ↔ PromotionType
-
getter/setter pair
- uuid ↔ String
-
getter/setter pair
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