mapping function should your builder on record type object and fill the mapping properties. If you see the fromEntity is not correctly implemented as it involve java record Car with lombok @Builder.
MapStruct is a Java annotation processor designed to generate type-safe and high-performance mappers for Java bean classes, including support for Java 16+ records. By ...