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


#include "RecordNotification.h"

namespace org {
namespace openapitools {
namespace server {
namespace model {

RecordNotification::RecordNotification()
{
    m_BlocksIsSet = false;
    
}

RecordNotification::~RecordNotification()
{
}

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

void to_json(nlohmann::json& j, const RecordNotification& o)
{
    j = nlohmann::json();
    j["descriptor"] = o.m_Descriptor;
    j["meta"] = o.m_Meta;
//     if(o.blocksIsSet() || !o.m_Blocks.empty())
//         j["blocks"] = o.m_Blocks;
 }

void from_json(const nlohmann::json& j, RecordNotification& o)
{
    j.at("descriptor").get_to(o.m_Descriptor);
    j.at("meta").get_to(o.m_Meta);
    if(j.find("blocks") != j.end())
    {
        // j.at("blocks").get_to(o.m_Blocks);
        // o.m_BlocksIsSet = true;
    } 
}

NotificationDescription RecordNotification::getDescriptor() const
{
    return m_Descriptor;
}
void RecordNotification::setDescriptor(NotificationDescription const& value)
{
    m_Descriptor = value;
}
RecordMeta RecordNotification::getMeta() const
{
    return m_Meta;
}
void RecordNotification::setMeta(RecordMeta const& value)
{
    m_Meta = value;
}
// std::vector<AnyType>& RecordNotification::getBlocks()
// {
//     return m_Blocks;
// }
//void RecordNotification::setBlocks(std::vector<AnyType> const& value)
//{
//    m_Blocks = value;
 //   m_BlocksIsSet = true;
//}
bool RecordNotification::blocksIsSet() const
{
    return m_BlocksIsSet;
}
void RecordNotification::unsetBlocks()
{
    m_BlocksIsSet = false;
}

}
}
}
}

