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