Revision control
+ /**
+ * OpenAPI Petstore
+ * This is a sample of Petstore application. For this sample, you can use the api key `special-key` to test the authorization filters.
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * Do not edit the class manually.
+ */
+
+ /*
+ * OAICategory.h
+ *
+ * A category for a pet
+ */
+
+ #ifndef OAICategory_H
+ #define OAICategory_H
+
+ #include <QJsonObject>
+
+ #include <QString>
+
+ #include "OAIEnum.h"
+ #include "OAIObject.h"
+
+ namespace OpenAPI {
+
+ class OAICategory : public OAIObject {
+ public:
+ OAICategory();
+ OAICategory(QString json);
+ ~OAICategory() override;
+
+ QString asJson() const override;
+ QJsonObject asJsonObject() const override;
+ void fromJsonObject(QJsonObject json) override;
+ void fromJson(QString jsonString) override;
+
+ qint64 getId() const;
+ void setId(const qint64 &id);
+ bool is_id_Set() const;
+ bool is_id_Valid() const;
+
+ QString getName() const;
+ void setName(const QString &name);
+ bool is_name_Set() const;
+ bool is_name_Valid() const;
+
+ virtual bool isSet() const override;
+ virtual bool isValid() const override;
+
+ private:
+ void initializeModel();
+
+ qint64 id;
+ bool m_id_isSet;
+ bool m_id_isValid;
+
+ QString name;
+ bool m_name_isSet;
+ bool m_name_isValid;
+ };
+
+ } // namespace OpenAPI
+
+ Q_DECLARE_METATYPE(OpenAPI::OAICategory)
+
+ #endif // OAICategory_H