getProductGroupsByMealCategorisationId method
Gets all the product groups of the meal categorisation that matches an id.
Implementation
Future<List<ProductGroup>> getProductGroupsByMealCategorisationId(
String id) async {
final response = await _context.client.get(
Uri.https(authority, '$path/mealcategorisations/$id/productgroups'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => ProductGroup.fromJson(e))
.toList();
}