text: /**
  * lbdsr API
  * lbdsr API generated from lbdsr.yang
  *
  * OpenAPI spec version: 1.0.0
  *
  * NOTE: This class is auto generated by the swagger code generator program.
  * https://github.com/polycube-network/swagger-codegen.git
  * branch polycube
  */
  
  
  /* Do not edit this file manually */
  
  
  
  #include "BackendPoolJsonObject.h"
  #include <regex>
  
  namespace io {
  namespace swagger {
  namespace server {
  namespace model {
  
  BackendPoolJsonObject::BackendPoolJsonObject() {
    m_idIsSet = false;
    m_macIsSet = false;
  }
  
  BackendPoolJsonObject::BackendPoolJsonObject(const nlohmann::json &val) :
    JsonObjectBase(val) {
    m_idIsSet = false;
    m_macIsSet = false;
  
  
    if (val.count("id")) {
      setId(val.at("id").get<uint32_t>());
    }
  
    if (val.count("mac")) {
      setMac(val.at("mac").get<std::string>());
    }
  }
  
  nlohmann::json BackendPoolJsonObject::toJson() const {
    nlohmann::json val = nlohmann::json::object();
    if (!getBase().is_null()) {
      val.update(getBase());
    }
  
    if (m_idIsSet) {
      val["id"] = m_id;
    }
  
    if (m_macIsSet) {
      val["mac"] = m_mac;
    }
  
    return val;
  }
  
  uint32_t BackendPoolJsonObject::getId() const {
    return m_id;
  }
  
  void BackendPoolJsonObject::setId(uint32_t value) {
    m_id = value;
    m_idIsSet = true;
  }
  
  bool BackendPoolJsonObject::idIsSet() const {
    return m_idIsSet;
  }
  
  
  
  std::string BackendPoolJsonObject::getMac() const {
    return m_mac;
  }
  
  void BackendPoolJsonObject::setMac(std::string value) {
    m_mac = value;
    m_macIsSet = true;
  }
  
  bool BackendPoolJsonObject::macIsSet() const {
    return m_macIsSet;
  }
  
  
  
  
  }
  }
  }
  }
  
  