/* 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 HolidayDTO
 */
export interface HolidayDTO {
    /**
     * 
     * @type {string}
     * @memberof HolidayDTO
     */
    date?: string;
    /**
     * 
     * @type {string}
     * @memberof HolidayDTO
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof HolidayDTO
     */
    userID?: string;
}

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

    return isInstance;
}

export function HolidayDTOFromJSON(json: any): HolidayDTO {
    return HolidayDTOFromJSONTyped(json, false);
}

export function HolidayDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): HolidayDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'date': !exists(json, 'date') ? undefined : json['date'],
        'id': !exists(json, 'id') ? undefined : json['id'],
        'userID': !exists(json, 'userID') ? undefined : json['userID'],
    };
}

export function HolidayDTOToJSON(value?: HolidayDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'date': value.date,
        'id': value.id,
        'userID': value.userID,
    };
}

