18 #include <QJsonDocument> 54 QByteArray array (json.toStdString().c_str());
55 QJsonDocument doc = QJsonDocument::fromJson(array);
56 QJsonObject jsonObject = doc.object();
72 QJsonDocument doc(*obj);
73 QByteArray bytes = doc.toJson();
75 return QString(bytes);
80 QJsonObject* obj =
new QJsonObject();
101 bool isObjectUpdated =
false;
103 if(
message !=
nullptr && *
message != QString(
"")){ isObjectUpdated =
true;
break;}
105 return isObjectUpdated;
virtual void fromJsonObject(QJsonObject &json) override
virtual bool isSet() override
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
virtual QString asJson() override
void setMessage(QString *message)
virtual QJsonObject * asJsonObject() override
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
virtual SWGErrorResponse * fromJson(QString &jsonString) override
virtual ~SWGErrorResponse()