text: /**
   * FastReport Cloud
   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
   *
   * The version of the OpenAPI document: v1
   *
   * NOTE: This class is auto generated by OpenAPI-Generator 5.1.1.
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  
  
  #include "FolderTagsUpdateVM.h"
  
  namespace fastreport {
  namespace cloud {
  namespace models {
  
  
  
  
  FolderTagsUpdateVM::FolderTagsUpdateVM()
  {
      m_tagsIsSet = false;
  }
  
  FolderTagsUpdateVM::~FolderTagsUpdateVM()
  {
  }
  
  void FolderTagsUpdateVM::validate()
  {
      // TODO: implement validation
  }
  
  web::json::value FolderTagsUpdateVM::toJson() const
  {
  
      web::json::value val = web::json::value::object();
      
      if(m_tagsIsSet)
      {
          val[utility::conversions::to_string_t("tags")] = ModelBase::toJson(m_tags);
      }
  
      return val;
  }
  
  bool FolderTagsUpdateVM::fromJson(const web::json::value& val)
  {
      bool ok = true;
      
      if(val.has_field(utility::conversions::to_string_t("tags")))
      {
          const web::json::value& fieldValue = val.at(utility::conversions::to_string_t("tags"));
          if(!fieldValue.is_null())
          {
              std::vector<utility::string_t> refVal_tags;
              ok &= ModelBase::fromJson(fieldValue, refVal_tags);
              setTags(refVal_tags);
          }
      }
      return ok;
  }
  
  void FolderTagsUpdateVM::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("."))
      {
          namePrefix += utility::conversions::to_string_t(".");
      }
      if(m_tagsIsSet)
      {
          multipart->add(ModelBase::toHttpContent(namePrefix + utility::conversions::to_string_t("tags"), m_tags));
      }
  }
  
  bool FolderTagsUpdateVM::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("."))
      {
          namePrefix += utility::conversions::to_string_t(".");
      }
  
      if(multipart->hasContent(utility::conversions::to_string_t("tags")))
      {
          std::vector<utility::string_t> refVal_tags;
          ok &= ModelBase::fromHttpContent(multipart->getContent(utility::conversions::to_string_t("tags")), refVal_tags );
          setTags(refVal_tags);
      }
      return ok;
  }
  
  std::vector<utility::string_t>& FolderTagsUpdateVM::getTags()
  {
      return m_tags;
  }
  
  void FolderTagsUpdateVM::setTags(const std::vector<utility::string_t>& value)
  {
      m_tags = value;
      m_tagsIsSet = true;
  }
  
  bool FolderTagsUpdateVM::tagsIsSet() const
  {
      return m_tagsIsSet;
  }
  
  void FolderTagsUpdateVM::unsettags()
  {
      m_tagsIsSet = false;
  }
  }
  }
  }
  
  
  