18 #include <QJsonDocument> 62 QByteArray array (json.toStdString().c_str());
63 QJsonDocument doc = QJsonDocument::fromJson(array);
64 QJsonObject jsonObject = doc.object();
84 QJsonDocument doc(*obj);
85 QByteArray bytes = doc.toJson();
87 return QString(bytes);
92 QJsonObject* obj =
new QJsonObject();
139 bool isObjectUpdated =
false;
145 return isObjectUpdated;
virtual QString asJson() override
qint32 getChannelSampleRate()
virtual SWGFreeDVModReport * fromJson(QString &jsonString) override
void setChannelSampleRate(qint32 channel_sample_rate)
virtual ~SWGFreeDVModReport()
virtual QJsonObject * asJsonObject() override
bool m_channel_power_db_isSet
bool m_audio_sample_rate_isSet
virtual bool isSet() override
bool m_channel_sample_rate_isSet
void setChannelPowerDb(float channel_power_db)
qint32 getAudioSampleRate()
float getChannelPowerDb()
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual void fromJsonObject(QJsonObject &json) override
qint32 channel_sample_rate
void setAudioSampleRate(qint32 audio_sample_rate)