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 a Map object and returns a new instance of the PromotionResponse class.

Properties

code int?
final
hashCode int
The hash code for this object.
no setterinherited
items List<Promotion>
final
limit int?
final
page int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalCount int?
final
totalPages int?
final

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