18 #include <QJsonDocument> 59 QByteArray array (json.toStdString().c_str());
60 QJsonDocument doc = QJsonDocument::fromJson(array);
61 QJsonObject jsonObject = doc.object();
79 QJsonDocument doc(*obj);
80 QByteArray bytes = doc.toJson();
82 return QString(bytes);
87 QJsonObject* obj =
new QJsonObject();
121 bool isObjectUpdated =
false;
126 return isObjectUpdated;
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual ~SWGPresetTransfer()
virtual bool isSet() override
SWGPresetIdentifier * preset
virtual bool isSet() override
virtual SWGPresetTransfer * fromJson(QString &jsonString) override
SWGPresetIdentifier * getPreset()
virtual void fromJsonObject(QJsonObject &json) override
void setDeviceSetIndex(qint32 device_set_index)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual QString asJson() override
void setPreset(SWGPresetIdentifier *preset)
virtual QJsonObject * asJsonObject() override
bool m_device_set_index_isSet
qint32 getDeviceSetIndex()