Class ItemMapper
java.lang.Object
edu.ntnu.idatt2106_2023_06.backend.mapper.ItemMapper
This class is a mapper that maps between the Item model and the Item DTOs.
- Author:
- Leon Egeberg Hesthaug, Trym Hamer Gudvangen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ItemMapper
public ItemMapper()
-
-
Method Details
-
toItem
- Parameters:
itemDTO
- The item DTO to mapstore
- The store to map- Returns:
- The mapped item
-
toItemDTO
- Parameters:
item
- The item to mapquantity
- The quantity to map- Returns:
- The mapped item DTO
-