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

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

BatteryIndicationRm::BatteryIndicationRm() {
  m_BatteryInd = false;
  m_BatteryIndIsSet = false;
  m_ReplaceableInd = false;
  m_ReplaceableIndIsSet = false;
  m_RechargeableInd = false;
  m_RechargeableIndIsSet = false;
}

BatteryIndicationRm::~BatteryIndicationRm() {}

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

void to_json(nlohmann::json &j, const BatteryIndicationRm &o) {
  j = nlohmann::json();
  if (o.batteryIndIsSet())
    j["batteryInd"] = o.m_BatteryInd;
  if (o.replaceableIndIsSet())
    j["replaceableInd"] = o.m_ReplaceableInd;
  if (o.rechargeableIndIsSet())
    j["rechargeableInd"] = o.m_RechargeableInd;
}

void from_json(const nlohmann::json &j, BatteryIndicationRm &o) {
  if (j.find("batteryInd") != j.end()) {
    j.at("batteryInd").get_to(o.m_BatteryInd);
    o.m_BatteryIndIsSet = true;
  }
  if (j.find("replaceableInd") != j.end()) {
    j.at("replaceableInd").get_to(o.m_ReplaceableInd);
    o.m_ReplaceableIndIsSet = true;
  }
  if (j.find("rechargeableInd") != j.end()) {
    j.at("rechargeableInd").get_to(o.m_RechargeableInd);
    o.m_RechargeableIndIsSet = true;
  }
}

bool BatteryIndicationRm::isBatteryInd() const { return m_BatteryInd; }
void BatteryIndicationRm::setBatteryInd(bool const value) {
  m_BatteryInd = value;
  m_BatteryIndIsSet = true;
}
bool BatteryIndicationRm::batteryIndIsSet() const { return m_BatteryIndIsSet; }
void BatteryIndicationRm::unsetBatteryInd() { m_BatteryIndIsSet = false; }
bool BatteryIndicationRm::isReplaceableInd() const { return m_ReplaceableInd; }
void BatteryIndicationRm::setReplaceableInd(bool const value) {
  m_ReplaceableInd = value;
  m_ReplaceableIndIsSet = true;
}
bool BatteryIndicationRm::replaceableIndIsSet() const {
  return m_ReplaceableIndIsSet;
}
void BatteryIndicationRm::unsetReplaceableInd() {
  m_ReplaceableIndIsSet = false;
}
bool BatteryIndicationRm::isRechargeableInd() const {
  return m_RechargeableInd;
}
void BatteryIndicationRm::setRechargeableInd(bool const value) {
  m_RechargeableInd = value;
  m_RechargeableIndIsSet = true;
}
bool BatteryIndicationRm::rechargeableIndIsSet() const {
  return m_RechargeableIndIsSet;
}
void BatteryIndicationRm::unsetRechargeableInd() {
  m_RechargeableIndIsSet = false;
}

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