text: /**
   * eZmax API Definition
   * This API expose all the functionnalities for the eZmax and eZsign applications.
   *
   * The version of the OpenAPI document: 1.1.3
   * Contact: support-api@ezmax.ca
   *
   * NOTE: This class is auto generated by OpenAPI-Generator 5.3.1-SNAPSHOT.
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  
  
  #include "Common_Response_Error_sTemporaryFileUrl.h"
  
  namespace org {
  namespace openapitools {
  namespace client {
  namespace model {
  
  
  
  
  Common_Response_Error_sTemporaryFileUrl::Common_Response_Error_sTemporaryFileUrl()
  {
      m_STemporaryFileUrl = utility::conversions::to_string_t("");
      m_STemporaryFileUrlIsSet = false;
      m_SErrorMessage = utility::conversions::to_string_t("");
      m_SErrorMessageIsSet = false;
      m_EErrorCode = utility::conversions::to_string_t("");
      m_EErrorCodeIsSet = false;
  }
  
  Common_Response_Error_sTemporaryFileUrl::~Common_Response_Error_sTemporaryFileUrl()
  {
  }
  
  void Common_Response_Error_sTemporaryFileUrl::validate()
  {
      // TODO: implement validation
  }
  
  web::json::value Common_Response_Error_sTemporaryFileUrl::toJson() const
  {
  
      web::json::value val = web::json::value::object();
      
      if(m_STemporaryFileUrlIsSet)
      {
          val[utility::conversions::to_string_t(U("sTemporaryFileUrl"))] = ModelBase::toJson(m_STemporaryFileUrl);
      }
      if(m_SErrorMessageIsSet)
      {
          val[utility::conversions::to_string_t(U("sErrorMessage"))] = ModelBase::toJson(m_SErrorMessage);
      }
      if(m_EErrorCodeIsSet)
      {
          val[utility::conversions::to_string_t(U("eErrorCode"))] = ModelBase::toJson(m_EErrorCode);
      }
  
      return val;
  }
  
  bool Common_Response_Error_sTemporaryFileUrl::fromJson(const web::json::value& val)
  {
      bool ok = true;
      
      if(val.has_field(utility::conversions::to_string_t(U("sTemporaryFileUrl"))))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U("sTemporaryFileUrl")));
          if(!fieldValue.is_null())
          {
              utility::string_t refVal_sTemporaryFileUrl;
              ok &= ModelBase::fromJson(fieldValue, refVal_sTemporaryFileUrl);
              setSTemporaryFileUrl(refVal_sTemporaryFileUrl);
          }
      }
      if(val.has_field(utility::conversions::to_string_t(U("sErrorMessage"))))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U("sErrorMessage")));
          if(!fieldValue.is_null())
          {
              utility::string_t refVal_sErrorMessage;
              ok &= ModelBase::fromJson(fieldValue, refVal_sErrorMessage);
              setSErrorMessage(refVal_sErrorMessage);
          }
      }
      if(val.has_field(utility::conversions::to_string_t(U("eErrorCode"))))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U("eErrorCode")));
          if(!fieldValue.is_null())
          {
              utility::string_t refVal_eErrorCode;
              ok &= ModelBase::fromJson(fieldValue, refVal_eErrorCode);
              setEErrorCode(refVal_eErrorCode);
          }
      }
      return ok;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& prefix) const
  {
      utility::string_t namePrefix = prefix;
      if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U(".")))
      {
          namePrefix += utility::conversions::to_string_t(U("."));
      }
      if(m_STemporaryFileUrlIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("sTemporaryFileUrl")), m_STemporaryFileUrl));
      }
      if(m_SErrorMessageIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("sErrorMessage")), m_SErrorMessage));
      }
      if(m_EErrorCodeIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("eErrorCode")), m_EErrorCode));
      }
  }
  
  bool Common_Response_Error_sTemporaryFileUrl::fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& prefix)
  {
      bool ok = true;
      utility::string_t namePrefix = prefix;
      if(namePrefix.size() > 0 && namePrefix.substr(namePrefix.size() - 1) != utility::conversions::to_string_t(U(".")))
      {
          namePrefix += utility::conversions::to_string_t(U("."));
      }
  
      if(multipart->hasContent(utility::conversions::to_string_t(U("sTemporaryFileUrl"))))
      {
          utility::string_t refVal_sTemporaryFileUrl;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("sTemporaryFileUrl"))), refVal_sTemporaryFileUrl );
          setSTemporaryFileUrl(refVal_sTemporaryFileUrl);
      }
      if(multipart->hasContent(utility::conversions::to_string_t(U("sErrorMessage"))))
      {
          utility::string_t refVal_sErrorMessage;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("sErrorMessage"))), refVal_sErrorMessage );
          setSErrorMessage(refVal_sErrorMessage);
      }
      if(multipart->hasContent(utility::conversions::to_string_t(U("eErrorCode"))))
      {
          utility::string_t refVal_eErrorCode;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("eErrorCode"))), refVal_eErrorCode );
          setEErrorCode(refVal_eErrorCode);
      }
      return ok;
  }
  
  utility::string_t Common_Response_Error_sTemporaryFileUrl::getSTemporaryFileUrl() const
  {
      return m_STemporaryFileUrl;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::setSTemporaryFileUrl(const utility::string_t& value)
  {
      m_STemporaryFileUrl = value;
      m_STemporaryFileUrlIsSet = true;
  }
  
  bool Common_Response_Error_sTemporaryFileUrl::sTemporaryFileUrlIsSet() const
  {
      return m_STemporaryFileUrlIsSet;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::unsetSTemporaryFileUrl()
  {
      m_STemporaryFileUrlIsSet = false;
  }
  utility::string_t Common_Response_Error_sTemporaryFileUrl::getSErrorMessage() const
  {
      return m_SErrorMessage;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::setSErrorMessage(const utility::string_t& value)
  {
      m_SErrorMessage = value;
      m_SErrorMessageIsSet = true;
  }
  
  bool Common_Response_Error_sTemporaryFileUrl::sErrorMessageIsSet() const
  {
      return m_SErrorMessageIsSet;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::unsetSErrorMessage()
  {
      m_SErrorMessageIsSet = false;
  }
  utility::string_t Common_Response_Error_sTemporaryFileUrl::getEErrorCode() const
  {
      return m_EErrorCode;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::setEErrorCode(const utility::string_t& value)
  {
      m_EErrorCode = value;
      m_EErrorCodeIsSet = true;
  }
  
  bool Common_Response_Error_sTemporaryFileUrl::eErrorCodeIsSet() const
  {
      return m_EErrorCodeIsSet;
  }
  
  void Common_Response_Error_sTemporaryFileUrl::unsetEErrorCode()
  {
      m_EErrorCodeIsSet = false;
  }
  }
  }
  }
  }
  
  
  