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