Menu Model
Class Menu
Represents a menu with its name and associated foods.
Properties
name
:String
- The name of the menu.foods
:MutableList<Food>
- A list of foods associated with the menu.id
:Int
- The unique identifier for the menu (default is 0).restaurantId
:Int
- The identifier of the restaurant this menu belongs to (default is 0).
Methods
addFood(vararg foods: Food): Menu
- Adds one or more foods to the menu.