MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / _set_from_json

Method _set_from_json

utility/import_info.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void ImportInfo::_set_from_json(const Dictionary &p_json) {
24 iitype = (IInfoType)p_json.get("iitype", BASE);
25 import_md_path = p_json.get("import_md_path", "");
26 ver_major = p_json.get("ver_major", 0);
27 ver_minor = p_json.get("ver_minor", 0);
28 not_an_import = p_json.get("not_an_import", false);
29 auto_converted_export = p_json.get("auto_converted_export", false);
30 // dirty = p_json.get("dirty", false);
31 preferred_import_path = p_json.get("preferred_import_path", "");
32 export_dest = p_json.get("export_dest", "");
33 export_lossless_copy = p_json.get("export_lossless_copy", "");
34}
35
36void ImportInfo::_get_json(Dictionary &p_json) const {
37 p_json["iitype"] = iitype;

Callers 1

from_jsonMethod · 0.80

Calls 3

from_jsonFunction · 0.85
getMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected