toMap method
Implementation
Map<String, Object?> toMap() => <String, Object?>{
'productIdentifier': productIdentifier,
'offeringIdentifier': offeringIdentifier,
'idempotencyKey': idempotencyKey,
'packageIdentifier': packageIdentifier,
'discountCode': discountCode,
'country': country,
'appVersion': appVersion,
'apiKey': apiKey,
'discount': discount,
'isCrypto': isCrypto,
'market': _marketWireName(market),
'marketKey': marketKey,
'isLostPurchase': isLostPurchase,
'lostPurchaseToken': lostPurchaseToken,
'lostPurchaseTime': lostPurchaseTime,
if (productType != null) 'productType': productType!.wireName,
if (dynamicPriceToken != null) 'dynamicPriceToken': dynamicPriceToken,
if (paywallId != null) 'paywallId': paywallId,
if (paywallRevision != null) 'paywallRevision': paywallRevision,
};