/* 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 CreateEmployeeInvoiceInputDTO
 */
export interface CreateEmployeeInvoiceInputDTO {
    /**
     * 
     * @type {number}
     * @memberof CreateEmployeeInvoiceInputDTO
     */
    adjustment: number;
    /**
     * 
     * @type {string}
     * @memberof CreateEmployeeInvoiceInputDTO
     */
    dateOverride: string;
    /**
     * 
     * @type {boolean}
     * @memberof CreateEmployeeInvoiceInputDTO
     */
    isPaid?: boolean;
    /**
     * 
     * @type {string}
     * @memberof CreateEmployeeInvoiceInputDTO
     */
    monthDate: string;
}

/**
 * Check if a given object implements the CreateEmployeeInvoiceInputDTO interface.
 */
export function instanceOfCreateEmployeeInvoiceInputDTO(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "adjustment" in value;
    isInstance = isInstance && "dateOverride" in value;
    isInstance = isInstance && "monthDate" in value;

    return isInstance;
}

export function CreateEmployeeInvoiceInputDTOFromJSON(json: any): CreateEmployeeInvoiceInputDTO {
    return CreateEmployeeInvoiceInputDTOFromJSONTyped(json, false);
}

export function CreateEmployeeInvoiceInputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateEmployeeInvoiceInputDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'adjustment': json['adjustment'],
        'dateOverride': json['dateOverride'],
        'isPaid': !exists(json, 'isPaid') ? undefined : json['isPaid'],
        'monthDate': json['monthDate'],
    };
}

export function CreateEmployeeInvoiceInputDTOToJSON(value?: CreateEmployeeInvoiceInputDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'adjustment': value.adjustment,
        'dateOverride': value.dateOverride,
        'isPaid': value.isPaid,
        'monthDate': value.monthDate,
    };
}

