import { TimeTrackingDaySummaryHoliday } from '../../business/models/timeTrackingDaySummaryHoliday';
import { TimeTrackingDaySummaryHolidayDAO } from '../dataAccessObjects/daySummaryHoliday';

export const mapHolidayAssociationDaoToModel = (dao: TimeTrackingDaySummaryHolidayDAO): TimeTrackingDaySummaryHoliday => {
    return new TimeTrackingDaySummaryHoliday({
        daySummaryId: dao.daySummaryId,
        holidayId: dao.holidayId,
        holidayName: dao.holidayName,
        id: dao.id,
    });
};
