class HabitCreateDtoMapper extends AbstractConverter<Habit, HabitCreateDto> {

    @Override
    protected HabitCreateDto convert(Habit habit) {
        HabitCreateDto habitCreateDto = new HabitCreateDto();
        HabitDictionaryDto habitDictionaryDto = new HabitDictionaryDto();
        habitDictionaryDto.setImage(habit.getHabitDictionary().getImage());
        habitDictionaryDto.setId(habit.getHabitDictionary().getId());
        habitCreateDto.setId(habit.getId());
        habitCreateDto.setStatus(habit.getStatusHabit());
        habitCreateDto.setHabitDictionary(habitDictionaryDto);
        return habitCreateDto;
    }

}