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