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

◆ decode_property() [2/2]

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

Definition at line 257 of file JSONSerializer.hpp.

261 {
262 if (j.contains(prop.key)) {
263 from_json(j.at(prop.key), obj.*prop.member);
264 }
265 }
static void from_json(const nlohmann::json &j, T &out)

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