text: /**
   * eZmax API Definition (Full)
   * This API expose all the functionnalities for the eZmax and eZsign applications.
   *
   * The version of the OpenAPI document: 1.1.7
   * Contact: support-api@ezmax.ca
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  #include "OAIEzsigntemplate_createObject_v1_Response_mPayload.h"
  
  #include <QDebug>
  #include <QJsonArray>
  #include <QJsonDocument>
  #include <QObject>
  
  #include "OAIHelpers.h"
  
  namespace OpenAPI {
  
  OAIEzsigntemplate_createObject_v1_Response_mPayload::OAIEzsigntemplate_createObject_v1_Response_mPayload(QString json) {
      this->initializeModel();
      this->fromJson(json);
  }
  
  OAIEzsigntemplate_createObject_v1_Response_mPayload::OAIEzsigntemplate_createObject_v1_Response_mPayload() {
      this->initializeModel();
  }
  
  OAIEzsigntemplate_createObject_v1_Response_mPayload::~OAIEzsigntemplate_createObject_v1_Response_mPayload() {}
  
  void OAIEzsigntemplate_createObject_v1_Response_mPayload::initializeModel() {
  
      m_a_pki_ezsigntemplate_id_isSet = false;
      m_a_pki_ezsigntemplate_id_isValid = false;
  }
  
  void OAIEzsigntemplate_createObject_v1_Response_mPayload::fromJson(QString jsonString) {
      QByteArray array(jsonString.toStdString().c_str());
      QJsonDocument doc = QJsonDocument::fromJson(array);
      QJsonObject jsonObject = doc.object();
      this->fromJsonObject(jsonObject);
  }
  
  void OAIEzsigntemplate_createObject_v1_Response_mPayload::fromJsonObject(QJsonObject json) {
  
      m_a_pki_ezsigntemplate_id_isValid = ::OpenAPI::fromJsonValue(a_pki_ezsigntemplate_id, json[QString("a_pkiEzsigntemplateID")]);
      m_a_pki_ezsigntemplate_id_isSet = !json[QString("a_pkiEzsigntemplateID")].isNull() && m_a_pki_ezsigntemplate_id_isValid;
  }
  
  QString OAIEzsigntemplate_createObject_v1_Response_mPayload::asJson() const {
      QJsonObject obj = this->asJsonObject();
      QJsonDocument doc(obj);
      QByteArray bytes = doc.toJson();
      return QString(bytes);
  }
  
  QJsonObject OAIEzsigntemplate_createObject_v1_Response_mPayload::asJsonObject() const {
      QJsonObject obj;
      if (a_pki_ezsigntemplate_id.size() > 0) {
          obj.insert(QString("a_pkiEzsigntemplateID"), ::OpenAPI::toJsonValue(a_pki_ezsigntemplate_id));
      }
      return obj;
  }
  
  QList<qint32> OAIEzsigntemplate_createObject_v1_Response_mPayload::getAPkiEzsigntemplateId() const {
      return a_pki_ezsigntemplate_id;
  }
  void OAIEzsigntemplate_createObject_v1_Response_mPayload::setAPkiEzsigntemplateId(const QList<qint32> &a_pki_ezsigntemplate_id) {
      this->a_pki_ezsigntemplate_id = a_pki_ezsigntemplate_id;
      this->m_a_pki_ezsigntemplate_id_isSet = true;
  }
  
  bool OAIEzsigntemplate_createObject_v1_Response_mPayload::is_a_pki_ezsigntemplate_id_Set() const{
      return m_a_pki_ezsigntemplate_id_isSet;
  }
  
  bool OAIEzsigntemplate_createObject_v1_Response_mPayload::is_a_pki_ezsigntemplate_id_Valid() const{
      return m_a_pki_ezsigntemplate_id_isValid;
  }
  
  bool OAIEzsigntemplate_createObject_v1_Response_mPayload::isSet() const {
      bool isObjectUpdated = false;
      do {
          if (a_pki_ezsigntemplate_id.size() > 0) {
              isObjectUpdated = true;
              break;
          }
      } while (false);
      return isObjectUpdated;
  }
  
  bool OAIEzsigntemplate_createObject_v1_Response_mPayload::isValid() const {
      // only required properties are required for the object to be considered valid
      return m_a_pki_ezsigntemplate_id_isValid && true;
  }
  
  } // namespace OpenAPI
  