PurchasedSubscriptions.fromJson constructor
PurchasedSubscriptions.fromJson(
- Map<String, dynamic> json
)
Implementation
PurchasedSubscriptions.fromJson(Map<String, dynamic> json) {
purchasedDate = json['purchasedDate'];
validity = json['validity'];
priceDetails = json['priceDetails'] != null
? new PriceDetails.fromJson(json['priceDetails'])
: null;
if (json['offerDetails'] != null) {
offerDetails = [];
if (json['offerDetails']!= null){
json['offerDetails'].forEach((v) {
offerDetails!.add(v);
});
}
}
subscription = json['subscription'] != null
? new Subscription.fromJson(json['subscription'])
: null;
subscriptionDetails = json['subscriptionDetails'] != null
? new SubscriptionDetails.fromJson(json['subscriptionDetails'])
: null;
}