MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ encode_property() [2/2]

template<typename Class , typename T >
static void MayaFlux::IO::JSONSerializer::encode_property ( nlohmann::json &  j,
const Class &  obj,
const Property< Class, T > &  prop 
)
inlinestaticprivate

Definition at line 178 of file JSONSerializer.hpp.

182 {
183 j[prop.key] = to_json(obj.*prop.member);
184 }
static nlohmann::json to_json(const T &val)

References MayaFlux::IO::Property< Class, T >::key, and MayaFlux::IO::Property< Class, T >::member.