public LinkedHashMap<String, String> getMap() {
LinkedHashMap<String, String> map = new LinkedHashMap<>();
Class<?> clazz = obj.getClass();
for (Field field : clazz.getDeclaredFields()) {
field.setAccessible(true);
String key = field.getName();
try {
String value = field.get(obj) == null ? "" : field.get(obj).toString();
map.put(key, value);
System.out.println("VALUE:" + value);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
return map;
}