/* 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 TimesheetEntryUpdateDTO
 */
export interface TimesheetEntryUpdateDTO {
    /**
     * 
     * @type {string}
     * @memberof TimesheetEntryUpdateDTO
     */
    checkIn?: string;
    /**
     * 
     * @type {string}
     * @memberof TimesheetEntryUpdateDTO
     */
    checkOut?: string;
    /**
     * 
     * @type {string}
     * @memberof TimesheetEntryUpdateDTO
     */
    comments?: string;
    /**
     * 
     * @type {number}
     * @memberof TimesheetEntryUpdateDTO
     */
    pause?: number;
}

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

    return isInstance;
}

export function TimesheetEntryUpdateDTOFromJSON(json: any): TimesheetEntryUpdateDTO {
    return TimesheetEntryUpdateDTOFromJSONTyped(json, false);
}

export function TimesheetEntryUpdateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimesheetEntryUpdateDTO {
    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'],
        'pause': !exists(json, 'pause') ? undefined : json['pause'],
    };
}

export function TimesheetEntryUpdateDTOToJSON(value?: TimesheetEntryUpdateDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'checkIn': value.checkIn,
        'checkOut': value.checkOut,
        'comments': value.comments,
        'pause': value.pause,
    };
}

