createMenu method

Future<Menu> createMenu(
  1. String name,
  2. int? logoId
)

Creates a new menu with the given data

Implementation

Future<Menu> createMenu(String name, int? logoId) async {
  final response = await _post('/api/menu', data: {
    'name': name,
    'logo': logoId,
  });

  return Menu.fromJson(response.data);
}