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

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

ReportItem::ReportItem()
{
    m_Path = "";
    m_Reason = "";
    m_ReasonIsSet = false;
    
}

ReportItem::~ReportItem()
{
}

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

void to_json(nlohmann::json& j, const ReportItem& o)
{
    j = nlohmann::json();
    j["path"] = o.m_Path;
    if(o.reasonIsSet())
        j["reason"] = o.m_Reason;
}

void from_json(const nlohmann::json& j, ReportItem& o)
{
    j.at("path").get_to(o.m_Path);
    if(j.find("reason") != j.end())
    {
        j.at("reason").get_to(o.m_Reason);
        o.m_ReasonIsSet = true;
    } 
}

std::string ReportItem::getPath() const
{
    return m_Path;
}
void ReportItem::setPath(std::string const& value)
{
    m_Path = value;
}
std::string ReportItem::getReason() const
{
    return m_Reason;
}
void ReportItem::setReason(std::string const& value)
{
    m_Reason = value;
    m_ReasonIsSet = true;
}
bool ReportItem::reasonIsSet() const
{
    return m_ReasonIsSet;
}
void ReportItem::unsetReason()
{
    m_ReasonIsSet = false;
}

}
}
}
}

