EventItem.fromMap constructor
EventItem.fromMap(
- Map<String, dynamic> map
)
Implementation
factory EventItem.fromMap(Map<String, dynamic> map) {
return EventItem(
affiliation: map['affiliation'] as String,
currency: map['currency'] as String,
coupon: map['coupon'] as String,
creativeName: map['creativeName'] as String,
creativeSlot: map['creativeSlot'] as String,
discount: map['discount'] as num,
index: map['index'] as int,
itemBrand: map['itemBrand'] as String,
itemCategory: map['itemCategory'] as String,
itemCategory2: map['itemCategory2'] as String,
itemCategory3: map['itemCategory3'] as String,
itemCategory4: map['itemCategory4'] as String,
itemCategory5: map['itemCategory5'] as String,
itemId: map['itemId'] as String,
itemListId: map['itemListId'] as String,
itemListName: map['itemListName'] as String,
itemName: map['itemName'] as String,
itemVariant: map['itemVariant'] as String,
locationId: map['locationId'] as String,
price: map['price'] as num,
promotionId: map['promotionId'] as String,
promotionName: map['promotionName'] as String,
quantity: map['quantity'] as int,
);
}