text: /**
   * Cloud Manager API
   * This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET request to https://cloudmanager.adobe.io/api/programs (with the correct set of headers as described below). This swagger file can be downloaded from https://raw.githubusercontent.com/AdobeDocs/cloudmanager-api-docs/master/swagger-specs/api.yaml.
   *
   * The version of the OpenAPI document: 1.0.0
   * Contact: opensource@shinesolutions.com
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  #include "OAIEnvironmentList__embedded.h"
  
  #include <QDebug>
  #include <QJsonArray>
  #include <QJsonDocument>
  #include <QObject>
  
  #include "OAIHelpers.h"
  
  namespace OpenAPI {
  
  OAIEnvironmentList__embedded::OAIEnvironmentList__embedded(QString json) {
      this->initializeModel();
      this->fromJson(json);
  }
  
  OAIEnvironmentList__embedded::OAIEnvironmentList__embedded() {
      this->initializeModel();
  }
  
  OAIEnvironmentList__embedded::~OAIEnvironmentList__embedded() {}
  
  void OAIEnvironmentList__embedded::initializeModel() {
  
      m_environments_isSet = false;
      m_environments_isValid = false;
  }
  
  void OAIEnvironmentList__embedded::fromJson(QString jsonString) {
      QByteArray array(jsonString.toStdString().c_str());
      QJsonDocument doc = QJsonDocument::fromJson(array);
      QJsonObject jsonObject = doc.object();
      this->fromJsonObject(jsonObject);
  }
  
  void OAIEnvironmentList__embedded::fromJsonObject(QJsonObject json) {
  
      m_environments_isValid = ::OpenAPI::fromJsonValue(environments, json[QString("environments")]);
      m_environments_isSet = !json[QString("environments")].isNull() && m_environments_isValid;
  }
  
  QString OAIEnvironmentList__embedded::asJson() const {
      QJsonObject obj = this->asJsonObject();
      QJsonDocument doc(obj);
      QByteArray bytes = doc.toJson();
      return QString(bytes);
  }
  
  QJsonObject OAIEnvironmentList__embedded::asJsonObject() const {
      QJsonObject obj;
      if (environments.size() > 0) {
          obj.insert(QString("environments"), ::OpenAPI::toJsonValue(environments));
      }
      return obj;
  }
  
  QList<OAIEnvironment> OAIEnvironmentList__embedded::getEnvironments() const {
      return environments;
  }
  void OAIEnvironmentList__embedded::setEnvironments(const QList<OAIEnvironment> &environments) {
      this->environments = environments;
      this->m_environments_isSet = true;
  }
  
  bool OAIEnvironmentList__embedded::isSet() const {
      bool isObjectUpdated = false;
      do {
          if (environments.size() > 0) {
              isObjectUpdated = true;
              break;
          }
      } while (false);
      return isObjectUpdated;
  }
  
  bool OAIEnvironmentList__embedded::isValid() const {
      // only required properties are required for the object to be considered valid
      return true;
  }
  
  } // namespace OpenAPI
  