AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
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) {}
};
T | the type converted. |
Specialization | used only to define specializations with std::enable_if_t. |