Source
sourceDto {
List<Integer> ids;
}
Target
targetDto {
List<CustomObject> myObjects;
}
Custom Object
CustomObject {
Integer id,
String name,
String slug
}
Note I am using an external API that always need name and slug initialised to an empty string. I mean, sending only the ID will no work. That's why I am trying so with Mapper