fromIosJson static method
Implementation
static AWOrder fromIosJson(Map<String, dynamic> json) {
final order = AWOrder();
order.productId = json["productIdentifier"];
order.orderId = json["originalTransactionId"];
order.productType =
json["productType"] != null ? json["productType"].toString() : "";
order.isInIntroPeriod = json["isInIntroPeriod"] ?? false;
if (json["subscriptionExpiredTime"] != null) {
final date = DateTime.parse(json["subscriptionExpiredTime"]);
order.expireTime = date.microsecondsSinceEpoch;
}
return order;
}