33 nl::json
json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Serialize.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
This object contains information about the color scheme for a user's name, message replies and link p...
UniqueGiftColors(const nl::json &json)
UniqueGiftColors()=default
std::int32_t darkThemeMainColor
Main color used in dark themes; RGB format.
std::int32_t lightThemeMainColor
Main color used in light themes; RGB format.
std::string modelCustomEmojiId
Custom emoji identifier of the unique gift's model.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.
std::vector< std::int32_t > darkThemeOtherColors
List of 1-3 additional colors used in dark themes; RGB format.
std::string symbolCustomEmojiId
Custom emoji identifier of the unique gift's symbol.
std::vector< std::int32_t > lightThemeOtherColors
List of 1-3 additional colors used in light themes; RGB format.