/**
* 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 <iostream>
#include "SmContextUpdateMessage.h"

namespace oai {
namespace smf_server {
namespace model {

SmContextUpdateMessage::SmContextUpdateMessage()
{
    m_JsonDataIsSet = false;
    m_BinaryDataN1SmMessageIsSet = false;
    m_BinaryDataN2SmInformationIsSet = false;
    
}

SmContextUpdateMessage::~SmContextUpdateMessage()
{
}

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

void to_json(nlohmann::json& j, const SmContextUpdateMessage& o)
{
    j = nlohmann::json();
    if(o.jsonDataIsSet())
        j["jsonData"] = o.m_JsonData;
    if(o.binaryDataN1SmMessageIsSet())
        j["binaryDataN1SmMessage"] = o.m_BinaryDataN1SmMessage;
    if(o.binaryDataN2SmInformationIsSet())
        j["binaryDataN2SmInformation"] = o.m_BinaryDataN2SmInformation;
}

void from_json(const nlohmann::json& j, SmContextUpdateMessage& o)
{
    if(j.find("jsonData") != j.end())
    {
        j.at("jsonData").get_to(o.m_JsonData);
        o.m_JsonDataIsSet = true;
    } 
    if(j.find("binaryDataN1SmMessage") != j.end())
    {
        j.at("binaryDataN1SmMessage").get_to(o.m_BinaryDataN1SmMessage);
        o.m_BinaryDataN1SmMessageIsSet = true;
    } 
    if(j.find("binaryDataN2SmInformation") != j.end())
    {   
        j.at("binaryDataN2SmInformation").get_to(o.m_BinaryDataN2SmInformation);
        o.m_BinaryDataN2SmInformationIsSet = true;
    } 
}

SmContextUpdateData SmContextUpdateMessage::getJsonData() const
{
    return m_JsonData;
}
void SmContextUpdateMessage::setJsonData(SmContextUpdateData const& value)
{
    m_JsonData = value;
    m_JsonDataIsSet = true;
}
bool SmContextUpdateMessage::jsonDataIsSet() const
{
    return m_JsonDataIsSet;
}
void SmContextUpdateMessage::unsetJsonData()
{
    m_JsonDataIsSet = false;
}
std::string SmContextUpdateMessage::getBinaryDataN1SmMessage() const
{
    return m_BinaryDataN1SmMessage;
}
void SmContextUpdateMessage::setBinaryDataN1SmMessage(std::string const& value)
{
    m_BinaryDataN1SmMessage = value;
    m_BinaryDataN1SmMessageIsSet = true;
}
bool SmContextUpdateMessage::binaryDataN1SmMessageIsSet() const
{
    return m_BinaryDataN1SmMessageIsSet;
}
void SmContextUpdateMessage::unsetBinaryDataN1SmMessage()
{
    m_BinaryDataN1SmMessageIsSet = false;
}
std::string SmContextUpdateMessage::getBinaryDataN2SmInformation() const
{
    return m_BinaryDataN2SmInformation;
}
void SmContextUpdateMessage::setBinaryDataN2SmInformation(std::string const& value)
{
    m_BinaryDataN2SmInformation = value;
    m_BinaryDataN2SmInformationIsSet = true;
}
bool SmContextUpdateMessage::binaryDataN2SmInformationIsSet() const
{
    return m_BinaryDataN2SmInformationIsSet;
}
void SmContextUpdateMessage::unsetBinaryDataN2SmInformation()
{
    m_BinaryDataN2SmInformationIsSet = false;
}

}
}
}

