menuDef method
Implementation
Future<MenuDefModel> menuDef() async {
var menuDefModel = MenuDefModel(
appId: app.documentID,
documentID: identifier,
name: name,
menuItems: [],
admin: false,
);
await menuDefRepository(appId: app.documentID)!.add(menuDefModel);
return menuDefModel;
}