PromotionDetails class
The PromotionDetails
class represents details of a promotion, including the discount type, and
provides methods for converting to and from a Map
.
Constructors
- PromotionDetails({PromotionDiscountTypeDetails? discountType})
- PromotionDetails.fromMap(Map map)
-
PromotionDetails.fromMap(Map map)
is a constructor that takes aMap
as input and creates a newPromotionDetails
object from it.
Properties
- discountType ↔ PromotionDiscountTypeDetails?
-
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 value of 'discountType' converted to a map using the 'asMap' function.
-
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