class AddHabitStatisticDtoMapper extends AbstractConverter<HabitStatistic, AddHabitStatisticDto> {

    @Override
    protected AddHabitStatisticDto convert(HabitStatistic habitStatistic) {
        return AddHabitStatisticDto.builder()
            .id(habitStatistic.getId())
            .amountOfItems(habitStatistic.getAmountOfItems())
            .createdOn(habitStatistic.getCreatedOn())
            .habitRate(habitStatistic.getHabitRate())
            .habitId(habitStatistic.getHabit().getId())
            .build();
    }

}