getMealCategorisations method
Gets all the meal categorisations.
Implementation
Future<List<MealCategorisation>> getMealCategorisations() async {
final response = await _context.client.get(
Uri.https(authority, '$path/mealcategorisations'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => MealCategorisation.fromJson(e))
.toList();
}