AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AJsonConv< T, Specialization > Struct Template Reference

Detailed Description

template<typename T, typename Specialization = void>
struct AJsonConv< T, Specialization >

Json conversion trait.

In order to convert use aui::to_json/aui::from_json functions instead.

static AJson to_json(const T&) converts the type to AJson

static T from_json(const AJson&) converts AJson to the type

template<>
struct AJsonConv<YOURTYPE> {
 static AJson toJson(const YOURTYPE& t) {}
 static void fromJson(const AJson& json, YOURTYPE& dst) {}
};

Template Parameters
Tthe type converted.
Specializationused only to define specializations with std::enable_if_t.
Examples
/github/workspace/aui.json/src/AUI/Json/Conversion.h.

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