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

namespace oai {
namespace amf {
namespace model {

AmfEventArea::AmfEventArea()
{
    m_PresenceInfoIsSet = false;
    m_LadnInfoIsSet = false;
    
}

AmfEventArea::~AmfEventArea()
{
}

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

void to_json(nlohmann::json& j, const AmfEventArea& o)
{
    j = nlohmann::json();
    if(o.presenceInfoIsSet())
        j["presenceInfo"] = o.m_PresenceInfo;
    if(o.ladnInfoIsSet())
        j["ladnInfo"] = o.m_LadnInfo;
}

void from_json(const nlohmann::json& j, AmfEventArea& o)
{
    if(j.find("presenceInfo") != j.end())
    {
        j.at("presenceInfo").get_to(o.m_PresenceInfo);
        o.m_PresenceInfoIsSet = true;
    } 
    if(j.find("ladnInfo") != j.end())
    {
        j.at("ladnInfo").get_to(o.m_LadnInfo);
        o.m_LadnInfoIsSet = true;
    } 
}

PresenceInfo AmfEventArea::getPresenceInfo() const
{
    return m_PresenceInfo;
}
void AmfEventArea::setPresenceInfo(PresenceInfo const& value)
{
    m_PresenceInfo = value;
    m_PresenceInfoIsSet = true;
}
bool AmfEventArea::presenceInfoIsSet() const
{
    return m_PresenceInfoIsSet;
}
void AmfEventArea::unsetPresenceInfo()
{
    m_PresenceInfoIsSet = false;
}
LadnInfo AmfEventArea::getLadnInfo() const
{
    return m_LadnInfo;
}
void AmfEventArea::setLadnInfo(LadnInfo const& value)
{
    m_LadnInfo = value;
    m_LadnInfoIsSet = true;
}
bool AmfEventArea::ladnInfoIsSet() const
{
    return m_LadnInfoIsSet;
}
void AmfEventArea::unsetLadnInfo()
{
    m_LadnInfoIsSet = false;
}

}
}
}

