Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.27 KB

ServiceHour.md

File metadata and controls

31 lines (22 loc) · 1.27 KB

ServiceHour

A JSON object serviceHour for each day. An empty JSON object indicates the menu item is not available on the day.

Properties

Name Type Description Notes
open_period_type str Defines the specific time period during which the menu is available - OpenPeriod = open only in given periods - OpenAllDay = open 24 hours - CloseAllDay = closed 24 hours
periods List[OpenPeriod] An array of open periods. Only required when `openPeriodType` is OpenPeriod [optional]

Example

from grabfood.models.service_hour import ServiceHour

# TODO update the JSON string below
json = "{}"
# create an instance of ServiceHour from a JSON string
service_hour_instance = ServiceHour.from_json(json)
# print the JSON string representation of the object
print(ServiceHour.to_json())

# convert the object into a dict
service_hour_dict = service_hour_instance.to_dict()
# create an instance of ServiceHour from a dict
service_hour_from_dict = ServiceHour.from_dict(service_hour_dict)

[Back to Model list] [Back to API list] [Back to README]