decode static method
Implementation
static Receipt decode(Object result) {
result as List<Object?>;
return Receipt(
receiptId: result[0]! as String,
sku: result[1]! as String,
termSku: result[2] as String?,
productType: ProductType.values[result[3]! as int],
purchaseDate: result[4]! as int,
cancelDate: result[5] as int?,
deferredDate: result[6] as int?,
deferredSku: result[7] as String?,
isCanceled: result[8]! as bool,
isDeferred: result[9]! as bool,
);
}