Name | Type | Description | Notes |
---|---|---|---|
id | str | The section's ID in the partner system. | |
name | str | The name of the section. | |
service_hours | ServiceHours | ||
categories | List[MenuSectionCategory] | An array of category JSON objects. Max 100 allowed per section. Refer to Categories for more information. |
from grabfood.models.menu_section import MenuSection
# TODO update the JSON string below
json = "{}"
# create an instance of MenuSection from a JSON string
menu_section_instance = MenuSection.from_json(json)
# print the JSON string representation of the object
print(MenuSection.to_json())
# convert the object into a dict
menu_section_dict = menu_section_instance.to_dict()
# create an instance of MenuSection from a dict
menu_section_from_dict = MenuSection.from_dict(menu_section_dict)