18 #include <QJsonDocument> 52 QByteArray array (json.toStdString().c_str());
53 QJsonDocument doc = QJsonDocument::fromJson(array);
54 QJsonObject jsonObject = doc.object();
70 QJsonDocument doc(*obj);
71 QByteArray bytes = doc.toJson();
73 return QString(bytes);
78 QJsonObject* obj =
new QJsonObject();
80 obj->insert(
"frequency", QJsonValue(
frequency));
99 bool isObjectUpdated =
false;
103 return isObjectUpdated;
virtual SWGRDSReport_altFrequencies * fromJson(QString &jsonString) override
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
void setFrequency(float frequency)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
SWGRDSReport_altFrequencies()
virtual QJsonObject * asJsonObject() override
virtual QString asJson() override
virtual ~SWGRDSReport_altFrequencies()