PromotionDiscountModeDetails class
The class PromotionDiscountModeDetails contains information about the discount steps and usage
trigger for a promotion.
Constructors
-
PromotionDiscountModeDetails({required List<
PromotionDiscountStep> discountSteps, required PromotionDiscountUsageTrigger discountUsageTrigger}) - PromotionDiscountModeDetails.fromMap(Map map)
-
PromotionDiscountModeDetails.fromMap(Map map)is a constructor that takes aMapas an argument and initializes aPromotionDiscountModeDetailsobject with the values from theMap.
Properties
-
discountSteps
↔ List<
PromotionDiscountStep> -
getter/setter pair
- discountUsageTrigger ↔ PromotionDiscountUsageTrigger
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asMap(
) → Map - The function returns a map with the values of 'discountSteps' and 'discountUsageTrigger'.
-
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