/**
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */

#include "AdditionalSnssaiData.h"

namespace org {
namespace openapitools {
namespace server {
namespace model {

AdditionalSnssaiData::AdditionalSnssaiData() {
  m_RequiredAuthnAuthz = false;
  m_RequiredAuthnAuthzIsSet = false;
}

AdditionalSnssaiData::~AdditionalSnssaiData() {}

void AdditionalSnssaiData::validate() {
  // TODO: implement validation
}

void to_json(nlohmann::json &j, const AdditionalSnssaiData &o) {
  j = nlohmann::json();
  if (o.requiredAuthnAuthzIsSet())
    j["requiredAuthnAuthz"] = o.m_RequiredAuthnAuthz;
}

void from_json(const nlohmann::json &j, AdditionalSnssaiData &o) {
  if (j.find("requiredAuthnAuthz") != j.end()) {
    j.at("requiredAuthnAuthz").get_to(o.m_RequiredAuthnAuthz);
    o.m_RequiredAuthnAuthzIsSet = true;
  }
}

bool AdditionalSnssaiData::isRequiredAuthnAuthz() const {
  return m_RequiredAuthnAuthz;
}
void AdditionalSnssaiData::setRequiredAuthnAuthz(bool const value) {
  m_RequiredAuthnAuthz = value;
  m_RequiredAuthnAuthzIsSet = true;
}
bool AdditionalSnssaiData::requiredAuthnAuthzIsSet() const {
  return m_RequiredAuthnAuthzIsSet;
}
void AdditionalSnssaiData::unsetRequiredAuthnAuthz() {
  m_RequiredAuthnAuthzIsSet = false;
}

} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
