text: /**
   * eZmax API Definition
   * This API expose all the functionnalities for the eZmax and eZsign applications.
   *
   * The version of the OpenAPI document: 1.1.6
   * Contact: support-api@ezmax.ca
   *
   * NOTE: This class is auto generated by OpenAPI-Generator 6.0.0-SNAPSHOT.
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  
  
  #include "eZmaxApi/model/Ezsignformfieldgroupsigner_Request.h"
  
  namespace org {
  namespace openapitools {
  namespace client {
  namespace model {
  
  
  
  Ezsignformfieldgroupsigner_Request::Ezsignformfieldgroupsigner_Request()
  {
      m_PkiEzsignformfieldgroupsignerID = 0;
      m_PkiEzsignformfieldgroupsignerIDIsSet = false;
      m_FkiEzsignfoldersignerassociationID = 0;
      m_FkiEzsignfoldersignerassociationIDIsSet = false;
  }
  
  Ezsignformfieldgroupsigner_Request::~Ezsignformfieldgroupsigner_Request()
  {
  }
  
  void Ezsignformfieldgroupsigner_Request::validate()
  {
      // TODO: implement validation
  }
  
  web::json::value Ezsignformfieldgroupsigner_Request::toJson() const
  {
  
      web::json::value val = web::json::value::object();
      
      if(m_PkiEzsignformfieldgroupsignerIDIsSet)
      {
          val[utility::conversions::to_string_t(U("pkiEzsignformfieldgroupsignerID"))] = ModelBase::toJson(m_PkiEzsignformfieldgroupsignerID);
      }
      if(m_FkiEzsignfoldersignerassociationIDIsSet)
      {
          val[utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID"))] = ModelBase::toJson(m_FkiEzsignfoldersignerassociationID);
      }
  
      return val;
  }
  
  bool Ezsignformfieldgroupsigner_Request::fromJson(const web::json::value& val)
  {
      bool ok = true;
      
      if(val.has_field(utility::conversions::to_string_t(U("pkiEzsignformfieldgroupsignerID"))))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U("pkiEzsignformfieldgroupsignerID")));
          if(!fieldValue.is_null())
          {
              int32_t refVal_pkiEzsignformfieldgroupsignerID;
              ok &= ModelBase::fromJson(fieldValue, refVal_pkiEzsignformfieldgroupsignerID);
              setPkiEzsignformfieldgroupsignerID(refVal_pkiEzsignformfieldgroupsignerID);
          }
      }
      if(val.has_field(utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID"))))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID")));
          if(!fieldValue.is_null())
          {
              int32_t refVal_fkiEzsignfoldersignerassociationID;
              ok &= ModelBase::fromJson(fieldValue, refVal_fkiEzsignfoldersignerassociationID);
              setFkiEzsignfoldersignerassociationID(refVal_fkiEzsignfoldersignerassociationID);
          }
      }
      return ok;
  }
  
  void Ezsignformfieldgroupsigner_Request::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_PkiEzsignformfieldgroupsignerIDIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("pkiEzsignformfieldgroupsignerID")), m_PkiEzsignformfieldgroupsignerID));
      }
      if(m_FkiEzsignfoldersignerassociationIDIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID")), m_FkiEzsignfoldersignerassociationID));
      }
  }
  
  bool Ezsignformfieldgroupsigner_Request::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("pkiEzsignformfieldgroupsignerID"))))
      {
          int32_t refVal_pkiEzsignformfieldgroupsignerID;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("pkiEzsignformfieldgroupsignerID"))), refVal_pkiEzsignformfieldgroupsignerID );
          setPkiEzsignformfieldgroupsignerID(refVal_pkiEzsignformfieldgroupsignerID);
      }
      if(multipart->hasContent(utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID"))))
      {
          int32_t refVal_fkiEzsignfoldersignerassociationID;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t(U("fkiEzsignfoldersignerassociationID"))), refVal_fkiEzsignfoldersignerassociationID );
          setFkiEzsignfoldersignerassociationID(refVal_fkiEzsignfoldersignerassociationID);
      }
      return ok;
  }
  
  int32_t Ezsignformfieldgroupsigner_Request::getPkiEzsignformfieldgroupsignerID() const
  {
      return m_PkiEzsignformfieldgroupsignerID;
  }
  
  void Ezsignformfieldgroupsigner_Request::setPkiEzsignformfieldgroupsignerID(int32_t value)
  {
      m_PkiEzsignformfieldgroupsignerID = value;
      m_PkiEzsignformfieldgroupsignerIDIsSet = true;
  }
  
  bool Ezsignformfieldgroupsigner_Request::pkiEzsignformfieldgroupsignerIDIsSet() const
  {
      return m_PkiEzsignformfieldgroupsignerIDIsSet;
  }
  
  void Ezsignformfieldgroupsigner_Request::unsetPkiEzsignformfieldgroupsignerID()
  {
      m_PkiEzsignformfieldgroupsignerIDIsSet = false;
  }
  int32_t Ezsignformfieldgroupsigner_Request::getFkiEzsignfoldersignerassociationID() const
  {
      return m_FkiEzsignfoldersignerassociationID;
  }
  
  void Ezsignformfieldgroupsigner_Request::setFkiEzsignfoldersignerassociationID(int32_t value)
  {
      m_FkiEzsignfoldersignerassociationID = value;
      m_FkiEzsignfoldersignerassociationIDIsSet = true;
  }
  
  bool Ezsignformfieldgroupsigner_Request::fkiEzsignfoldersignerassociationIDIsSet() const
  {
      return m_FkiEzsignfoldersignerassociationIDIsSet;
  }
  
  void Ezsignformfieldgroupsigner_Request::unsetFkiEzsignfoldersignerassociationID()
  {
      m_FkiEzsignfoldersignerassociationIDIsSet = false;
  }
  }
  }
  }
  }
  
  
  