30 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 the physical address of a location. https://core.telegram.org/bots/api#locationaddress.
std::string state
Optional. State of the location.
LocationAddress(const nl::json &json)
std::string city
Optional. City of the location.
LocationAddress()=default
std::string countryCode
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
std::string street
Optional. Street address of the location.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.