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 278 of file JSONSerializer.hpp.

282 {
283 if (j.contains(prop.key)) {
284 from_json(j.at(prop.key), obj.*prop.member);
285 }
286 }
static void from_json(const nlohmann::json &j, T &out)

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