Interface UserProfileMapper
public interface UserProfileMapper
Mapper for converting between
UserProfileRequest
and UserProfileResponse
.
This interface uses MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs) related to user profiles.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest
(UserProfileResponse userProfileResponse) Maps aUserProfileResponse
object to aUserProfileRequest
object.toResponse
(UserProfileRequest userProfileRequest) Maps aUserProfileRequest
object to aUserProfileResponse
object.
-
Method Details
-
toRequest
Maps aUserProfileResponse
object to aUserProfileRequest
object.- Parameters:
userProfileResponse
- TheUserProfileResponse
object to be converted.- Returns:
- The converted
UserProfileRequest
object.
-
toResponse
Maps aUserProfileRequest
object to aUserProfileResponse
object.- Parameters:
userProfileRequest
- TheUserProfileRequest
object to be converted.- Returns:
- The converted
UserProfileResponse
object.
-