Interface CardMapper
public interface CardMapper
Mapper for converting between
CardRequest
and CardResponse
.
This interface utilizes MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs) related to cards.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest
(CardResponse cardResponse) Maps aCardResponse
object to aCardRequest
object.toResponse
(CardRequest cardRequest) Maps aCardRequest
object to aCardResponse
object.
-
Method Details
-
toRequest
Maps aCardResponse
object to aCardRequest
object.- Parameters:
cardResponse
- TheCardResponse
object to be converted.- Returns:
- The converted
CardRequest
object.
-
toResponse
Maps aCardRequest
object to aCardResponse
object.- Parameters:
cardRequest
- TheCardRequest
object to be converted.- Returns:
- The converted
CardResponse
object.
-