Virgil Security C++ SDK
Public Member Functions | Static Public Member Functions | List of all members
virgil::sdk::serialization::JsonSerializer< T > Class Template Reference

This class is responsible for the data object marshalling. More...

#include <JsonSerializer.h>

Public Member Functions

 JsonSerializer ()=delete
 Forbid instantiation.
 

Static Public Member Functions

template<int INDENT = -1>
static std::string toJson (const T &obj)
 Serializes given object to std::string Json representation. More...
 

Detailed Description

template<typename T>
class virgil::sdk::serialization::JsonSerializer< T >

This class is responsible for the data object marshalling.

Note
Supported classes: CreateCardSnapshotModel, RevokeCardSnapshotModel, SearchCardsCriteria, SignableRequestInterface
Template Parameters
Trepresents class to be serialized

Member Function Documentation

template<typename T >
template<int INDENT = -1>
static std::string virgil::sdk::serialization::JsonSerializer< T >::toJson ( const T &  obj)
static

Serializes given object to std::string Json representation.

Template Parameters
INDENTif > 0 - pretty print, 0 - only new lines, -1 - compact
Parameters
objobject to be serialized
Returns
std::string json representation of the object

The documentation for this class was generated from the following file: