18 #include <QJsonDocument> 58 QByteArray array (json.toStdString().c_str());
59 QJsonDocument doc = QJsonDocument::fromJson(array);
60 QJsonObject jsonObject = doc.object();
76 QJsonDocument doc(*obj);
77 QByteArray bytes = doc.toJson();
79 return QString(bytes);
84 QJsonObject* obj =
new QJsonObject();
92 QList<SWGSampleRate*>*
105 bool isObjectUpdated =
false;
107 if(
sample_rates->size() > 0){ isObjectUpdated =
true;
break;}
109 return isObjectUpdated;
QList< SWGSampleRate * > * sample_rates
virtual SWGAirspyHFReport * fromJson(QString &jsonString) override
QList< SWGSampleRate * > * getSampleRates()
virtual QJsonObject * asJsonObject() override
bool m_sample_rates_isSet
virtual QString asJson() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setSampleRates(QList< SWGSampleRate *> *sample_rates)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual void fromJsonObject(QJsonObject &json) override
virtual ~SWGAirspyHFReport()
virtual bool isSet() override