Signature.fromJson constructor
Signature.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Signature.fromJson(Map<String, dynamic> json) => Signature(
subscriptionAlreadyPurchased: json["subscriptionAlreadyPurchased"],
purchasedSubscriptions: List<PurchasedSubscription>.from(json["purchasedSubscriptions"].map((x) => PurchasedSubscription.fromJson(x))),
freeTrialConsumed: 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"],
);