| 34 | } |
| 35 | |
| 36 | void ImportInfo::_get_json(Dictionary &p_json) const { |
| 37 | p_json["iitype"] = iitype; |
| 38 | p_json["import_md_path"] = import_md_path; |
| 39 | p_json["ver_major"] = ver_major; |
| 40 | p_json["ver_minor"] = ver_minor; |
| 41 | if (not_an_import) { |
| 42 | p_json["not_an_import"] = not_an_import; |
| 43 | } |
| 44 | if (auto_converted_export) { |
| 45 | p_json["auto_converted_export"] = auto_converted_export; |
| 46 | } |
| 47 | // p_json["dirty"] = dirty; |
| 48 | if (!preferred_import_path.is_empty()) { |
| 49 | p_json["preferred_import_path"] = preferred_import_path; |
| 50 | } |
| 51 | if (!export_dest.is_empty()) { |
| 52 | p_json["export_dest"] = export_dest; |
| 53 | } |
| 54 | if (!export_lossless_copy.is_empty()) { |
| 55 | p_json["export_lossless_copy"] = export_lossless_copy; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | Dictionary ImportInfo::to_json() const { |
| 60 | Dictionary json; |
nothing calls this directly
no test coverage detected