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

Forward decl. More...

#include <JsonDeserializer.h>

Inheritance diagram for virgil::sdk::serialization::JsonDeserializer< T >:
virgil::sdk::serialization::JsonDeserializerBase< T >

Public Member Functions

 JsonDeserializer ()=delete
 Forbid instantiation.
 

Static Public Member Functions

template<int FAKE = 0>
static T fromJson (const nlohmann::json &json)
 Deserialize object from its Json representation. More...
 
- Static Public Member Functions inherited from virgil::sdk::serialization::JsonDeserializerBase< T >
template<int FAKE = 0>
static T fromJsonString (const std::string &jsonString)
 Deserialize object from its Json representation. More...
 

Detailed Description

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

Forward decl.

This class is responsible for model deserialization.

Note
Supported classes: CardResponse, CardsResponse, VirgilError
Template Parameters
TClass to be deserialized

Member Function Documentation

template<typename T >
template<int FAKE = 0>
static T virgil::sdk::serialization::JsonDeserializer< T >::fromJson ( const nlohmann::json &  json)
static

Deserialize object from its Json representation.

Template Parameters
FAKEFake parameter to allow implementation in source files
Parameters
jsonjson representation of model
Returns
deserialized object

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