/**
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI-Generator 6.1.0-SNAPSHOT.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/*
 * 200_response.h
 *
 * Model for testing model name starting with number
 */

#ifndef 200_response_H_
#define 200_response_H_



#include <string>
#include <memory>
#include <vector>
#include <boost/property_tree/ptree.hpp>
#include "helpers.h"

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

/// <summary>
/// Model for testing model name starting with number
/// </summary>
class  200_response 
{
public:
    200_response() = default;
    explicit 200_response(boost::property_tree::ptree const& pt);
    virtual ~200_response() = default;

    200_response(const 200_response& other) = default; // copy constructor
    200_response(200_response&& other) noexcept = default; // move constructor

    200_response& operator=(const 200_response& other) = default; // copy assignment
    200_response& operator=(200_response&& other) noexcept = default; // move assignment

    std::string toJsonString(bool prettyJson = false) const;
    void fromJsonString(std::string const& jsonString);
    boost::property_tree::ptree toPropertyTree() const;
    void fromPropertyTree(boost::property_tree::ptree const& pt);


    /////////////////////////////////////////////
    /// 200_response members

    /// <summary>
    /// 
    /// </summary>
    int32_t getName() const;
    void setName(int32_t value);

    /// <summary>
    /// 
    /// </summary>
    std::string getRClass() const;
    void setRClass(std::string value);

protected:
    int32_t m_Name = 0;
    std::string m_r_class = "";
};

std::vector<200_response> create200_responseVectorFromJsonString(const std::string& json);

template<>
inline boost::property_tree::ptree toPt<200_response>(const 200_response& val) {
    return val.toPropertyTree();
}

template<>
inline 200_response fromPt<200_response>(const boost::property_tree::ptree& pt) {
    200_response ret;
    ret.fromPropertyTree(pt);
    return ret;
}

}
}
}
}

#endif /* 200_response_H_ */
