PurchaseInfo.fromMap constructor

PurchaseInfo.fromMap(
  1. Map typeName
)

Implementation

factory PurchaseInfo.fromMap(Map<dynamic, dynamic> typeName) {
  return PurchaseInfo(
    typeName['orderId'] as String,
    typeName['purchaseToken'] as String,
    typeName['payload'] as String,
    typeName['packageName'] as String,
    parsePurchaseState(typeName['purchaseState']),
    typeName['purchaseTime'] as int,
    typeName['productId'] as String,
    typeName['originalJson'] as String,
    typeName['dataSignature'] as String,
  );
}