/* tslint:disable */
/* eslint-disable */
/**
 * Tuix Services
 * Tuix Services API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface AdjustedTimesheetEntryDTO
 */
export interface AdjustedTimesheetEntryDTO {
    /**
     * 
     * @type {string}
     * @memberof AdjustedTimesheetEntryDTO
     */
    checkIn?: string;
    /**
     * 
     * @type {string}
     * @memberof AdjustedTimesheetEntryDTO
     */
    checkOut?: string;
    /**
     * 
     * @type {string}
     * @memberof AdjustedTimesheetEntryDTO
     */
    comments?: string;
    /**
     * 
     * @type {number}
     * @memberof AdjustedTimesheetEntryDTO
     */
    day?: number;
    /**
     * 
     * @type {string}
     * @memberof AdjustedTimesheetEntryDTO
     */
    id?: string;
    /**
     * 
     * @type {boolean}
     * @memberof AdjustedTimesheetEntryDTO
     */
    isEmployeeHoliday?: boolean;
    /**
     * 
     * @type {boolean}
     * @memberof AdjustedTimesheetEntryDTO
     */
    isHoliday?: boolean;
    /**
     * 
     * @type {number}
     * @memberof AdjustedTimesheetEntryDTO
     */
    pause?: number;
}

/**
 * Check if a given object implements the AdjustedTimesheetEntryDTO interface.
 */
export function instanceOfAdjustedTimesheetEntryDTO(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function AdjustedTimesheetEntryDTOFromJSON(json: any): AdjustedTimesheetEntryDTO {
    return AdjustedTimesheetEntryDTOFromJSONTyped(json, false);
}

export function AdjustedTimesheetEntryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdjustedTimesheetEntryDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'checkIn': !exists(json, 'checkIn') ? undefined : json['checkIn'],
        'checkOut': !exists(json, 'checkOut') ? undefined : json['checkOut'],
        'comments': !exists(json, 'comments') ? undefined : json['comments'],
        'day': !exists(json, 'day') ? undefined : json['day'],
        'id': !exists(json, 'id') ? undefined : json['id'],
        'isEmployeeHoliday': !exists(json, 'isEmployeeHoliday') ? undefined : json['isEmployeeHoliday'],
        'isHoliday': !exists(json, 'isHoliday') ? undefined : json['isHoliday'],
        'pause': !exists(json, 'pause') ? undefined : json['pause'],
    };
}

export function AdjustedTimesheetEntryDTOToJSON(value?: AdjustedTimesheetEntryDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'checkIn': value.checkIn,
        'checkOut': value.checkOut,
        'comments': value.comments,
        'day': value.day,
        'id': value.id,
        'isEmployeeHoliday': value.isEmployeeHoliday,
        'isHoliday': value.isHoliday,
        'pause': value.pause,
    };
}

