toJSON method
Implementation
Map<String, dynamic> toJSON() => {
'price': price,
'priceCurrency': priceCurrency,
'productId': productId,
'productTitle': productTitle,
'productType': productType == ProductType.item ? 0 : 1,
'purchaseDate': purchaseDate,
'purchaseId': purchaseId,
};