24 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
Describes the opening hours of a business. https://core.telegram.org/bots/api#businessopeninghours.
std::string timeZoneName
Unique name of the time zone for which the opening hours are defined.
BusinessOpeningHours()=default
void fromJson(const nl::json &json)
Deserializes this object from JSON.
BusinessOpeningHours(const nl::json &json)
std::vector< Ptr< BusinessOpeningHoursInterval > > openingHours
List of time intervals describing business opening hours.
nl::json toJson() const
Serializes this object to JSON.