getProductByCode method
Gets the product that matches a code.
Implementation
Future<Product> getProductByCode(String code) async {
final response = await _context.client.get(
Uri.https(authority, '$path/products/code/$code'),
);
ClientException.checkIsSuccessStatusCode(response);
return Product.fromJson(json.decode(response.body));
}