fromAndroidJson static method
Implementation
static AWOrder fromAndroidJson(Map<String, dynamic> json) {
final order = AWOrder();
order.productId = json["productId"];
order.orderId = json["orderId"];
order.purchaseToken = json["purchaseToken"];
order.obfuscatedAccountId = json["obfuscatedAccountId"];
order.obfuscatedProfileId = json["obfuscatedProfileId"];
order.paymentType = json["paymentType"];
order.purchaseTime = json["purchaseTime"];
order.purchaseState = json["purchaseState"];
order.autoRenewing = json["autoRenewing"];
if (json["inGracePeriod"] != null) {
order.inGracePeriod = json["inGracePeriod"];
}
order.expireTime = json["expireTime"] ?? 0;
return order;
}