UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

74 lines (64 loc) 1.81 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 GlobalTimesheetEntryUpdateDTO */ export interface GlobalTimesheetEntryUpdateDTO { /** * * @type {string} * @memberof GlobalTimesheetEntryUpdateDTO */ comments?: string; /** * * @type {number} * @memberof GlobalTimesheetEntryUpdateDTO */ hours?: number; } /** * Check if a given object implements the GlobalTimesheetEntryUpdateDTO interface. */ export function instanceOfGlobalTimesheetEntryUpdateDTO(value: object): boolean { let isInstance = true; return isInstance; } export function GlobalTimesheetEntryUpdateDTOFromJSON(json: any): GlobalTimesheetEntryUpdateDTO { return GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, false); } export function GlobalTimesheetEntryUpdateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalTimesheetEntryUpdateDTO { if ((json === undefined) || (json === null)) { return json; } return { 'comments': !exists(json, 'comments') ? undefined : json['comments'], 'hours': !exists(json, 'hours') ? undefined : json['hours'], }; } export function GlobalTimesheetEntryUpdateDTOToJSON(value?: GlobalTimesheetEntryUpdateDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'comments': value.comments, 'hours': value.hours, }; }