/**
 * Namf_Communication
 * AMF Communication 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 "TransData.hpp"
#include <iostream>
namespace org {
namespace openapitools {
namespace server {
namespace model {

TransData::TransData() {
  m_transdata   = "";
}

TransData::~TransData() {}

std::string TransData::get_amf_data()
{
  return m_transdata;
}

void to_json(nlohmann::json& j, const TransData& o) {
  j                 = nlohmann::json();
  j["n2_data"] = o.m_transdata;
}

void from_json(const nlohmann::json& j, TransData& o) {
  if(j.find("n2_data") != j.end())
    j.at("n2_data").get_to(o.m_transdata);
  if(j.find("ip_address") != j.end())
    j.at("ip_address").get_to(o.ip_addr);
  if(j.find("current_message_queue_len") != j.end())
    j.at("current_message_queue_len").get_to(o.mq_len);
  if(j.find("capability") != j.end()){
    j.at("capability").get_to(o.cap);
    std::cout << "capability_dukl"<<std::endl;
  }
}


}  // namespace model
}  // namespace amf
}
}  // namespace oai
