class HabitStatisticMapper extends AbstractConverter<AddHabitStatisticDto, HabitStatistic> {

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

}