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 aCurrencyDataResponse
object to aCurrencyDataRequest
object.toResponse
(CurrencyDataRequest currencyDataRequest) Maps aCurrencyDataRequest
object to aCurrencyDataResponse
object.
-
Method Details
-
toResponse
Maps aCurrencyDataRequest
object to aCurrencyDataResponse
object.- Parameters:
currencyDataRequest
- TheCurrencyDataRequest
object to be converted.- Returns:
- The converted
CurrencyDataResponse
object.
-
toRequest
Maps aCurrencyDataResponse
object to aCurrencyDataRequest
object.- Parameters:
currencyDataResponse
- TheCurrencyDataResponse
object to be converted.- Returns:
- The converted
CurrencyDataRequest
object.
-