IList<Product> getProductsWithResponse(String json) { return List<Product>.from( (jsonDecode(json) as List<dynamic>).map(Product.fromJson)) .lock; }