public Map<String, String> asKeyValuePairs(String prefix) {
		Map<String, String> result = new HashMap<>();
		result.put(prefix + "path", Objects.requireNonNullElse(path, "-missing-"));
		result.put(prefix + "version", Objects.requireNonNullElse(version, "-missing-"));
		if (sum != null) {
			result.put(prefix + "sum", sum);
		}
		if (replace != null) {
			result.put(prefix + "replace", replace.getFormattedString());
		}
		return result;
	}
Returns the values in this object as elements of a map.

@param prefix String prefix to put in front of each value name
@return map of String &rarr; String
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/GoModuleInfo.java