I am attempting to parse HashMap data into POJO using
Object parsedMessage = objectMapper.convertValue(receivedMessage, destinationClass);
where receivedMessage is a HashMap (earlier parsed from JSON) and containing fields of various types - Integer, Boolean, String, LinkedHashMap.
I have defined destinationClass so that it contains some of the fields found in HashMap keys, with exactly the same names as the keys (case-sensitive).
The instruction executes without an exception but all the fields in parsedMessage are null. What could be the reason? The similar instructions work just fine in other place of code.