/**
 * Nsmf_PDUSession
 * SMF PDU Session Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS,
 * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 1.1.0.alpha-1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */

#include "MmeCapabilities.h"

namespace oai {
namespace smf_server {
namespace model {

MmeCapabilities::MmeCapabilities() {
  m_NonIpSupported      = false;
  m_NonIpSupportedIsSet = false;
}

MmeCapabilities::~MmeCapabilities() {}

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

void to_json(nlohmann::json& j, const MmeCapabilities& o) {
  j = nlohmann::json();
  if (o.nonIpSupportedIsSet()) j["nonIpSupported"] = o.m_NonIpSupported;
}

void from_json(const nlohmann::json& j, MmeCapabilities& o) {
  if (j.find("nonIpSupported") != j.end()) {
    j.at("nonIpSupported").get_to(o.m_NonIpSupported);
    o.m_NonIpSupportedIsSet = true;
  }
}

bool MmeCapabilities::isNonIpSupported() const {
  return m_NonIpSupported;
}
void MmeCapabilities::setNonIpSupported(bool const value) {
  m_NonIpSupported      = value;
  m_NonIpSupportedIsSet = true;
}
bool MmeCapabilities::nonIpSupportedIsSet() const {
  return m_NonIpSupportedIsSet;
}
void MmeCapabilities::unsetNonIpSupported() {
  m_NonIpSupportedIsSet = false;
}

}  // namespace model
}  // namespace smf_server
}  // namespace oai
