getMealCategorisationById method

Future<MealCategorisation> getMealCategorisationById(
  1. String id
)

Gets the meal categorisation that matches an id.

Implementation

Future<MealCategorisation> getMealCategorisationById(String id) async {
  final response = await _context.client.get(
    Uri.https(authority, '$path/mealcategorisations/$id'),
  );

  ClientException.checkIsSuccessStatusCode(response);

  return MealCategorisation.fromJson(json.decode(response.body));
}