SubscriptionAccess.fromJson constructor
SubscriptionAccess.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SubscriptionAccess.fromJson(Map<String, dynamic> json) =>
SubscriptionAccess(
subscriptionAlreadyPurchased: json["subscriptionAlreadyPurchased"],
purchasedSubscriptions: List<PurchasedSubscription>.from(
json["purchasedSubscriptions"]
.map((x) => PurchasedSubscription.fromJson(x))),
freeTrialConsumed: json["freeTrialConsumed"] == null
? null
: json["freeTrialConsumed"],
allowRenewal:
json["allowRenewal"] == null ? null : json["allowRenewal"],
internalUser:
json["internalUser"] == null ? null : json["internalUser"],
payload: Payload.fromJson(json["payload"]),
consumptionId:
json["consumptionId"] == null ? null : json["consumptionId"],
signature: json["signature"] == null ? null : json["signature"],
downloadExists:
json["downloadExists"] == null ? null : json["downloadExists"],
);