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 aUserProfileResponseobject to aUserProfileRequestobject.toResponse(UserProfileRequest userProfileRequest) Maps aUserProfileRequestobject to aUserProfileResponseobject.
-
Method Details
-
toRequest
Maps aUserProfileResponseobject to aUserProfileRequestobject.- Parameters:
userProfileResponse- TheUserProfileResponseobject to be converted.- Returns:
- The converted
UserProfileRequestobject.
-
toResponse
Maps aUserProfileRequestobject to aUserProfileResponseobject.- Parameters:
userProfileRequest- TheUserProfileRequestobject to be converted.- Returns:
- The converted
UserProfileResponseobject.
-