createMenuItemByMenu method
Creates a new menu item with the given menu as parent
Implementation
Future<MenuItem> createMenuItemByMenu(
int menuId,
String route,
int position,
String title, {
int? artist,
int? form,
int? page,
int? segmentPage,
int? gallery,
int? category,
bool? blogHomePage,
bool? highlighted,
}) async {
final response = await _post('/api/menu/$menuId/item', data: {
'route': route,
'position': position,
'title': title,
'artist': artist,
'form': form,
'page': page,
'segmentPage': segmentPage,
'gallery': gallery,
'category': category,
'blogHomePage': blogHomePage,
'highlighted': highlighted,
});
return MenuItem.fromJson(response.data);
}