PromotionIdentifier class

The PromotionIdentifier class represents a key-value pair object used to identify a promotion, with methods for converting to and from a map.

Constructors

PromotionIdentifier({required PromotionIdentifierKey key, required String value})
PromotionIdentifier.fromMap(Map map)
PromotionIdentifier.fromMap(Map map) is a constructor that takes a Map as an argument and creates a new PromotionIdentifier object from it.

Properties

hashCode int
The hash code for this object.
no setterinherited
key PromotionIdentifierKey
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
getter/setter pair

Methods

asMap() Map
The function returns a map with a key and value based on the promotion identifier key and value.
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