Interface CurrencyDataMapper
public interface CurrencyDataMapper
Mapper for converting between
CurrencyDataRequest and CurrencyDataResponse.
This interface utilizes MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs) related to currency data.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest(CurrencyDataResponse currencyDataResponse) Maps aCurrencyDataResponseobject to aCurrencyDataRequestobject.toResponse(CurrencyDataRequest currencyDataRequest) Maps aCurrencyDataRequestobject to aCurrencyDataResponseobject.
-
Method Details
-
toResponse
Maps aCurrencyDataRequestobject to aCurrencyDataResponseobject.- Parameters:
currencyDataRequest- TheCurrencyDataRequestobject to be converted.- Returns:
- The converted
CurrencyDataResponseobject.
-
toRequest
Maps aCurrencyDataResponseobject to aCurrencyDataRequestobject.- Parameters:
currencyDataResponse- TheCurrencyDataResponseobject to be converted.- Returns:
- The converted
CurrencyDataRequestobject.
-