18 #include <QJsonDocument> 63 QByteArray array (json.toStdString().c_str());
64 QJsonDocument doc = QJsonDocument::fromJson(array);
65 QJsonObject jsonObject = doc.object();
83 QJsonDocument doc(*obj);
84 QByteArray bytes = doc.toJson();
86 return QString(bytes);
91 QJsonObject* obj =
new QJsonObject();
93 obj->insert(
"nbDevices", QJsonValue(
nb_devices));
112 QList<SWGDVSerialDevice*>*
125 bool isObjectUpdated =
false;
130 return isObjectUpdated;
virtual bool isSet() override
virtual SWGDVSerialDevices * fromJson(QString &jsonString) override
virtual ~SWGDVSerialDevices()
bool m_dv_serial_devices_isSet
virtual QString asJson() override
QList< SWGDVSerialDevice * > * getDvSerialDevices()
void setNbDevices(qint32 nb_devices)
void setDvSerialDevices(QList< SWGDVSerialDevice *> *dv_serial_devices)
virtual QJsonObject * asJsonObject() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
QList< SWGDVSerialDevice * > * dv_serial_devices
virtual void fromJsonObject(QJsonObject &json) override