decode static method

Product decode(
  1. Object result
)

Implementation

static Product decode(Object result) {
  result as List<Object?>;
  return Product(
    description: result[0]! as String,
    freeTrialPeriod: result[1] as String?,
    price: result[2]! as String,
    productType: ProductType.values[result[3]! as int],
    sku: result[4]! as String,
    smallIconUrl: result[5]! as String,
    subscriptionPeriod: result[6] as String?,
    title: result[7]! as String,
  );
}