GlassfyPurchaseHistory.fromJson constructor

GlassfyPurchaseHistory.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GlassfyPurchaseHistory.fromJson(Map<String, dynamic> json) {
  return GlassfyPurchaseHistory(
    json['offeringId'] as String?,
    json['productId'] as String?,
    json['skuId'] as String?,
    $enumDecodeNullable(_$GlassfyEventTypeEnumMap, json['type']),
    $enumDecodeNullable(_$GlassfyStoreEnumMap, json['store']),
    _dateTimeFromJsonEpoch(json, 'purchaseDate'),
    _dateTimeFromJsonEpoch(json, 'expireDate'),
    json['transactionId'] as String?,
    json['subscriberId'] as String?,
    json['currencyCode'] as String?,
    json['countryCode'] as String?,
    json['isInIntroOfferPeriod'] as bool?,
    json['promotionalOfferId'] as String?,
    json['offerCodeRefName'] as String?,
    json['licenseCode'] as String?,
    json['webOrderLineItemId'] as String?,
  );
}