18 #include <QJsonDocument> 68 QByteArray array (json.toStdString().c_str());
69 QJsonDocument doc = QJsonDocument::fromJson(array);
70 QJsonObject jsonObject = doc.object();
90 QJsonDocument doc(*obj);
91 QByteArray bytes = doc.toJson();
93 return QString(bytes);
98 QJsonObject* obj =
new QJsonObject();
145 bool isObjectUpdated =
false;
149 if(
config !=
nullptr &&
config->isSet()){ isObjectUpdated =
true;
break;}
151 return isObjectUpdated;
SWGChannelSettings * getConfig()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual QJsonObject * asJsonObject() override
void setChannelId(QString *channel_id)
bool m_channel_id_uri_isSet
virtual void fromJsonObject(QJsonObject &json) override
virtual QString asJson() override
void setConfig(SWGChannelSettings *config)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
QString * getChannelIdUri()
void setChannelIdUri(QString *channel_id_uri)
SWGChannelSettings * config
virtual SWGChannelConfig * fromJson(QString &jsonString) override
virtual ~SWGChannelConfig()
virtual bool isSet() override