18 #include <QJsonDocument> 45 devices =
new QList<SWGDeviceListItem*>();
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(
"devicecount", QJsonValue(
devicecount));
112 QList<SWGDeviceListItem*>*
125 bool isObjectUpdated =
false;
128 if(
devices->size() > 0){ isObjectUpdated =
true;
break;}
130 return isObjectUpdated;
virtual ~SWGInstanceDevicesResponse()
virtual bool isSet() override
void setDevicecount(qint32 devicecount)
void setDevices(QList< SWGDeviceListItem *> *devices)
QList< SWGDeviceListItem * > * devices
SWGInstanceDevicesResponse()
QList< SWGDeviceListItem * > * getDevices()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual void fromJsonObject(QJsonObject &json) override
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
virtual SWGInstanceDevicesResponse * fromJson(QString &jsonString) override