MCPcopy Create free account
hub / github.com/comaps/comaps / FromJSON

Function FromJSON

libs/search/search_quality/sample.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void FromJSON(json_t * root, Sample::Result & result)
246{
247 FromJSONObject(root, "position", result.m_pos);
248 FromJSONObject(root, "name", result.m_name);
249 FromJSONObject(root, "houseNumber", result.m_houseNumber);
250 FromJSONObject(root, "types", result.m_types);
251 FromJSONObject(root, "relevancy", result.m_relevance);
252}
253
254base::JSONPtr ToJSON(Sample::Result const & result)
255{

Callers

nothing calls this directly

Calls 1

FromJSONObjectFunction · 0.70

Tested by

no test coverage detected