18 #include <QJsonDocument> 45 channels =
new QList<SWGChannelListItem*>();
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();
112 QList<SWGChannelListItem*>*
125 bool isObjectUpdated =
false;
128 if(
channels->size() > 0){ isObjectUpdated =
true;
break;}
130 return isObjectUpdated;
virtual SWGInstanceChannelsResponse * fromJson(QString &jsonString) override
QList< SWGChannelListItem * > * channels
virtual QJsonObject * asJsonObject() override
virtual ~SWGInstanceChannelsResponse()
void setChannelcount(qint32 channelcount)
virtual QString asJson() override
void setChannels(QList< SWGChannelListItem *> *channels)
virtual bool isSet() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
SWGInstanceChannelsResponse()
bool m_channelcount_isSet
virtual void fromJsonObject(QJsonObject &json) override
QList< SWGChannelListItem * > * getChannels()