3 #include <nlohmann/json.hpp>
7 namespace nl = nlohmann;
39 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.
This object represents a shipping address. https://core.telegram.org/bots/api#shippingaddress.
std::string postCode
Address post code.
std::string streetLine1
First line for the address.
nl::json toJson() const
Serializes this object to JSON.
ShippingAddress()=default
ShippingAddress(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string streetLine2
Second line for the address.
std::string countryCode
Two-letter ISO 3166-1 alpha-2 country code.
std::string state
State, if applicable.