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 aCardResponseobject to aCardRequestobject.toResponse(CardRequest cardRequest) Maps aCardRequestobject to aCardResponseobject.
-
Method Details
-
toRequest
Maps aCardResponseobject to aCardRequestobject.- Parameters:
cardResponse- TheCardResponseobject to be converted.- Returns:
- The converted
CardRequestobject.
-
toResponse
Maps aCardRequestobject to aCardResponseobject.- Parameters:
cardRequest- TheCardRequestobject to be converted.- Returns:
- The converted
CardResponseobject.
-