decode static method

Purchase decode(
  1. Object result
)

Implementation

static Purchase decode(Object result) {
  result as List<Object?>;
  return Purchase(
    purchaseId: result[0] as String?,
    productId: result[1] as String?,
    productType: result[2] as String?,
    language: result[3] as String?,
    purchaseTime: result[4] as String?,
    orderId: result[5] as String?,
    amountLabel: result[6] as String?,
    amount: result[7] as int?,
    currency: result[8] as String?,
    quantity: result[9] as int?,
    purchaseState: result[10] as String?,
    developerPayload: result[11] as String?,
    invoiceId: result[12] as String?,
    subscriptionToken: result[13] as String?,
  );
}