decode static method

FlutterPurchase decode(
  1. Object result
)

Implementation

static FlutterPurchase decode(Object result) {
  result as List<Object?>;
  return FlutterPurchase(
    purchaseId: result[0]! as String,
    productId: result[1]! as String,
    invoiceId: result[2]! as String,
    orderId: result[3] as String?,
    purchaseType: result[4]! as FlutterPurchaseType,
    productType: result[5]! as FlutterProductType,
    description: result[6]! as String,
    purchaseTime: result[7] as String?,
    price: result[8]! as int,
    amountLabel: result[9]! as String,
    currency: result[10]! as String,
    quantity: result[11]! as int,
    status: result[12]! as FlutterPurchaseStatus,
    subscriptionToken: result[13] as String?,
    developerPayload: result[14] as String?,
  );
}