Class RecipePartMapper
java.lang.Object
edu.ntnu.idatt2106_2023_06.backend.mapper.recipe.RecipePartMapper
Mapper class for mapping RecipePart objects to RecipePartDTO objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecipePartDTO
toRecipePartDTO
(RecipePart recipePart) Converts aRecipePart
object to aRecipePartDTO
object.
-
Constructor Details
-
RecipePartMapper
public RecipePartMapper()
-
-
Method Details
-
toRecipePartDTO
Converts aRecipePart
object to aRecipePartDTO
object.- Parameters:
recipePart
- theRecipePart
object to convert- Returns:
- a new
RecipePartDTO
object with the same values as the inputRecipePart
object
-