decode static method
Implementation
static Product decode(Object result) {
result as List<Object?>;
return Product(
productId: result[0]! as String,
productType: result[1] as String?,
productStatus: result[2]! as String,
priceLabel: result[3] as String?,
price: result[4] as int?,
currency: result[5] as String?,
language: result[6] as String?,
title: result[7] as String?,
description: result[8] as String?,
imageUrl: result[9] as String?,
promoImageUrl: result[10] as String?,
subscription: result[11] != null
? Subscription.decode(result[11]! as List<Object?>)
: null,
);
}