Package com.omarigrant.budget.mappers
Class BudgetMapper
java.lang.Object
com.omarigrant.budget.mappers.BudgetMapper
- All Implemented Interfaces:
BudgetMapperContract
Converts Budget to BudgetDTO and BudgetDTO to Budget
- Author:
- Omari Grant
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BudgetMapper
public BudgetMapper()
-
-
Method Details
-
toDto
Description copied from interface:BudgetMapperContractConvert Budget to BudgetDTO- Specified by:
toDtoin interfaceBudgetMapperContract- Parameters:
budget- Budget entity- Returns:
- BudgetDTO
-
toBudget
Description copied from interface:BudgetMapperContractConvert BudgetInputDTO to Budget- Specified by:
toBudgetin interfaceBudgetMapperContract- Parameters:
budgetInputDTO- BudgetInputDTO is a model for input from useruser- User model to attach to budget- Returns:
- Budget entity
-