extractItems function
Implementation
List<IAPItem> extractItems(dynamic result) {
List list = json.decode(result.toString());
List<IAPItem> products = list
.map<IAPItem>(
(dynamic product) => IAPItem.fromJSON(product as Map<String, dynamic>),
)
.toList();
return products;
}