11 explicit Gifts(
const nl::json& json) {
21 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field)
#define OBJECT_DESERIALIZE_FIELD_PTR_ARRAY(json, json_field, array_field, optional)
This object represents a list of gifts. https://core.telegram.org/bots/api#gifts.
std::vector< Ptr< Gift > > gifts
The list of gifts.
nl::json toJson() const
Serializes this object to JSON.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
Gifts(const nl::json &json)