MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetJsonValue

Method SetJsonValue

src/Coordinate.cpp:70–77  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

68
69// Load Json::Value into this object
70void Coordinate::SetJsonValue(const Json::Value root) {
71
72 // Set data from Json (if key is found)
73 if (!root["X"].isNull())
74 X = root["X"].asDouble();
75 if (!root["Y"].isNull())
76 Y = root["Y"].asDouble();
77}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected