isProductExists method
Implementation
Future<GeneralResponse<ProductDetails>> isProductExists(
String barcode) async {
return loadResponse(() async {
final response = await _api.isProductExists(barcode);
if (response.data != null) {
return ProductDetails.fromJson(response.data);
}
throw Exception('Product not found');
});
}