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 a Map as an argument and initializes a PromotionDiscountModeDetails object with the values from the Map.

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