tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
90 lines (80 loc) • 2.29 kB
text/typescript
/* 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 AdjustedTimesheetUpdateEntryDTO
*/
export interface AdjustedTimesheetUpdateEntryDTO {
/**
*
* @type {string}
* @memberof AdjustedTimesheetUpdateEntryDTO
*/
checkIn?: string;
/**
*
* @type {string}
* @memberof AdjustedTimesheetUpdateEntryDTO
*/
checkOut?: string;
/**
*
* @type {string}
* @memberof AdjustedTimesheetUpdateEntryDTO
*/
comments?: string;
/**
*
* @type {number}
* @memberof AdjustedTimesheetUpdateEntryDTO
*/
pause?: number;
}
/**
* Check if a given object implements the AdjustedTimesheetUpdateEntryDTO interface.
*/
export function instanceOfAdjustedTimesheetUpdateEntryDTO(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AdjustedTimesheetUpdateEntryDTOFromJSON(json: any): AdjustedTimesheetUpdateEntryDTO {
return AdjustedTimesheetUpdateEntryDTOFromJSONTyped(json, false);
}
export function AdjustedTimesheetUpdateEntryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdjustedTimesheetUpdateEntryDTO {
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 AdjustedTimesheetUpdateEntryDTOToJSON(value?: AdjustedTimesheetUpdateEntryDTO | 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,
};
}