/**
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.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 "MessageWaitingData.h"

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

MessageWaitingData::MessageWaitingData() { m_MwdListIsSet = false; }

MessageWaitingData::~MessageWaitingData() {}

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

void to_json(nlohmann::json &j, const MessageWaitingData &o) {
  j = nlohmann::json();
  if (o.mwdListIsSet() || !o.m_MwdList.empty())
    j["mwdList"] = o.m_MwdList;
}

void from_json(const nlohmann::json &j, MessageWaitingData &o) {
  if (j.find("mwdList") != j.end()) {
    j.at("mwdList").get_to(o.m_MwdList);
    o.m_MwdListIsSet = true;
  }
}

std::vector<SmscData> &MessageWaitingData::getMwdList() { return m_MwdList; }
void MessageWaitingData::setMwdList(std::vector<SmscData> const &value) {
  m_MwdList = value;
  m_MwdListIsSet = true;
}
bool MessageWaitingData::mwdListIsSet() const { return m_MwdListIsSet; }
void MessageWaitingData::unsetMwdList() { m_MwdListIsSet = false; }

} // namespace model
} // namespace server
} // namespace openapitools
} // namespace org
