mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 08:17:10 +00:00
add cpprest and samples
This commit is contained in:
25
samples/client/petstore/cpprest/JsonBody.cpp
Normal file
25
samples/client/petstore/cpprest/JsonBody.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "JsonBody.h"
|
||||
|
||||
namespace io {
|
||||
namespace swagger {
|
||||
namespace client {
|
||||
namespace model {
|
||||
|
||||
JsonBody::JsonBody( const web::json::value& json)
|
||||
: m_Json(json)
|
||||
{
|
||||
}
|
||||
|
||||
JsonBody::~JsonBody()
|
||||
{
|
||||
}
|
||||
|
||||
void JsonBody::writeTo( std::ostream& target )
|
||||
{
|
||||
m_Json.serialize(target);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user