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