UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

53 lines 1.99 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.GlobalTimesheetEntryUpdateDTOToJSON = exports.GlobalTimesheetEntryUpdateDTOFromJSONTyped = exports.GlobalTimesheetEntryUpdateDTOFromJSON = exports.instanceOfGlobalTimesheetEntryUpdateDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the GlobalTimesheetEntryUpdateDTO interface. */ function instanceOfGlobalTimesheetEntryUpdateDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfGlobalTimesheetEntryUpdateDTO = instanceOfGlobalTimesheetEntryUpdateDTO; function GlobalTimesheetEntryUpdateDTOFromJSON(json) { return GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, false); } exports.GlobalTimesheetEntryUpdateDTOFromJSON = GlobalTimesheetEntryUpdateDTOFromJSON; function GlobalTimesheetEntryUpdateDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'comments': !(0, runtime_1.exists)(json, 'comments') ? undefined : json['comments'], 'hours': !(0, runtime_1.exists)(json, 'hours') ? undefined : json['hours'], }; } exports.GlobalTimesheetEntryUpdateDTOFromJSONTyped = GlobalTimesheetEntryUpdateDTOFromJSONTyped; function GlobalTimesheetEntryUpdateDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'comments': value.comments, 'hours': value.hours, }; } exports.GlobalTimesheetEntryUpdateDTOToJSON = GlobalTimesheetEntryUpdateDTOToJSON; //# sourceMappingURL=GlobalTimesheetEntryUpdateDTO.js.map