getFreeFromsByProductId method
Gets all the free froms of the product that matches an id.
Implementation
Future<List<FreeFrom>> getFreeFromsByProductId(String id) async {
final response = await _context.client.get(
Uri.https(authority, '$path/products/$id/freefroms'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => FreeFrom.fromJson(e))
.toList();
}