| 21 | } |
| 22 | |
| 23 | void 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 | |
| 36 | void ImportInfo::_get_json(Dictionary &p_json) const { |
| 37 | p_json["iitype"] = iitype; |