PromotionResponse class
The code defines a Dart class for a promotion response and includes a private constructor and a function to convert a list of objects to a list of promotions.
Constructors
- PromotionResponse.fromMap(Map map)
-
PromotionResponse.fromMap(Map map)
is a factory constructor that takes in aMap
object and returns a new instance of thePromotionResponse
class.
Properties
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