22 nl::json json = nl::json::object();
#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.
Describes an interval of time during which a business is open. https://core.telegram....
BusinessOpeningHoursInterval()=default
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::int32_t openingMinute
The minute's sequence number in a week, starting on Monday, marking the start of the time interval du...
BusinessOpeningHoursInterval(const nl::json &json)
std::int32_t closingMinute
The minute's sequence number in a week, starting on Monday, marking the end of the time interval duri...
nl::json toJson() const
Serializes this object to JSON.