UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

94 lines (84 loc) 2.16 kB
/* 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 GlobalTimesheetEntryDTO */ export interface GlobalTimesheetEntryDTO { /** * * @type {string} * @memberof GlobalTimesheetEntryDTO */ comments: string; /** * * @type {number} * @memberof GlobalTimesheetEntryDTO */ day: number; /** * * @type {number} * @memberof GlobalTimesheetEntryDTO */ hours: number; /** * * @type {string} * @memberof GlobalTimesheetEntryDTO */ id: string; } /** * Check if a given object implements the GlobalTimesheetEntryDTO interface. */ export function instanceOfGlobalTimesheetEntryDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "comments" in value; isInstance = isInstance && "day" in value; isInstance = isInstance && "hours" in value; isInstance = isInstance && "id" in value; return isInstance; } export function GlobalTimesheetEntryDTOFromJSON(json: any): GlobalTimesheetEntryDTO { return GlobalTimesheetEntryDTOFromJSONTyped(json, false); } export function GlobalTimesheetEntryDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTimesheetEntryDTO { if ((json === undefined) || (json === null)) { return json; } return { 'comments': json['comments'], 'day': json['day'], 'hours': json['hours'], 'id': json['id'], }; } export function GlobalTimesheetEntryDTOToJSON(value?: GlobalTimesheetEntryDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'comments': value.comments, 'day': value.day, 'hours': value.hours, 'id': value.id, }; }