toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'type': type.name,
'productId': productId,
'link': link,
'price': price,
'variantId': variantId,
'expiryTimestamp': _formatExpiryTimestamp(expiryTimestamp),
'alertPrice': alertPrice,
'availability': availability?.name,
'profileId': profileId,
'mrp': mrp,
'data': data,
};
}