Quoting from a [StackOverflow Q&A ](https://stackoverflow.com/questions/62455515/how-can-i-use-java-records-as-dto-with-modelmapper), the current version 2.3.8 doesn't seem to support java `record` classes. The minimal code sample used to test this (quoting the link) ``` public record UserDto(String firstName, String lastName, String email, String imageUrl) {} ``` ``` User post = modelMapper.map(userDto, User.class);```