/**
* 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 "SmContextRetrievedData.h"

namespace oai {
namespace smf_server {
namespace model {

SmContextRetrievedData::SmContextRetrievedData()
{
    m_UeEpsPdnConnection = "";
    m_SmContextIsSet = false;
    
}

SmContextRetrievedData::~SmContextRetrievedData()
{
}

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

void to_json(nlohmann::json& j, const SmContextRetrievedData& o)
{
    j = nlohmann::json();
    j["ueEpsPdnConnection"] = o.m_UeEpsPdnConnection;
    if(o.smContextIsSet())
        j["smContext"] = o.m_SmContext;
}

void from_json(const nlohmann::json& j, SmContextRetrievedData& o)
{
    j.at("ueEpsPdnConnection").get_to(o.m_UeEpsPdnConnection);
    if(j.find("smContext") != j.end())
    {
        j.at("smContext").get_to(o.m_SmContext);
        o.m_SmContextIsSet = true;
    } 
}

std::string SmContextRetrievedData::getUeEpsPdnConnection() const
{
    return m_UeEpsPdnConnection;
}
void SmContextRetrievedData::setUeEpsPdnConnection(std::string const& value)
{
    m_UeEpsPdnConnection = value;
    
}
SmContext SmContextRetrievedData::getSmContext() const
{
    return m_SmContext;
}
void SmContextRetrievedData::setSmContext(SmContext const& value)
{
    m_SmContext = value;
    m_SmContextIsSet = true;
}
bool SmContextRetrievedData::smContextIsSet() const
{
    return m_SmContextIsSet;
}
void SmContextRetrievedData::unsetSmContext()
{
    m_SmContextIsSet = false;
}

}
}
}

