getMenuById method

Future<Menu> getMenuById(
  1. int id
)

Gets the menu with the given id

Implementation

Future<Menu> getMenuById(int id) async {
  final response = await _get('/api/menu/$id');

  return Menu.fromJson(response.data);
}