asMap method
Returns the current instance as a Map.
Implementation
Map<String, dynamic> asMap() {
return <String, dynamic>{
if (parameters != null) ...parameters!,
if (affiliation != null) 'affiliation': affiliation,
if (currency != null) 'currency': currency,
if (coupon != null) 'coupon': coupon,
if (creativeName != null) 'creative_name': creativeName,
if (creativeSlot != null) 'creative_slot': creativeSlot,
if (discount != null) 'discount': discount,
if (index != null) 'index': index,
if (itemBrand != null) 'item_brand': itemBrand,
if (itemCategory != null) 'item_category': itemCategory,
if (itemCategory2 != null) 'item_category2': itemCategory2,
if (itemCategory3 != null) 'item_category3': itemCategory3,
if (itemCategory4 != null) 'item_category4': itemCategory4,
if (itemCategory5 != null) 'item_category5': itemCategory5,
if (itemId != null) 'item_id': itemId,
if (itemListId != null) 'item_list_id': itemListId,
if (itemListName != null) 'item_list_name': itemListName,
if (itemName != null) 'item_name': itemName,
if (itemVariant != null) 'item_variant': itemVariant,
if (locationId != null) 'location_id': locationId,
if (price != null) 'price': price,
if (promotionId != null) 'promotion_id': promotionId,
if (promotionName != null) 'promotion_name': promotionName,
if (quantity != null) 'quantity': quantity,
};
}