UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

57 lines 2.12 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.TimesheetEntryUpdateDTOToJSON = exports.TimesheetEntryUpdateDTOFromJSONTyped = exports.TimesheetEntryUpdateDTOFromJSON = exports.instanceOfTimesheetEntryUpdateDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the TimesheetEntryUpdateDTO interface. */ function instanceOfTimesheetEntryUpdateDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfTimesheetEntryUpdateDTO = instanceOfTimesheetEntryUpdateDTO; function TimesheetEntryUpdateDTOFromJSON(json) { return TimesheetEntryUpdateDTOFromJSONTyped(json, false); } exports.TimesheetEntryUpdateDTOFromJSON = TimesheetEntryUpdateDTOFromJSON; function TimesheetEntryUpdateDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'checkIn': !(0, runtime_1.exists)(json, 'checkIn') ? undefined : json['checkIn'], 'checkOut': !(0, runtime_1.exists)(json, 'checkOut') ? undefined : json['checkOut'], 'comments': !(0, runtime_1.exists)(json, 'comments') ? undefined : json['comments'], 'pause': !(0, runtime_1.exists)(json, 'pause') ? undefined : json['pause'], }; } exports.TimesheetEntryUpdateDTOFromJSONTyped = TimesheetEntryUpdateDTOFromJSONTyped; function TimesheetEntryUpdateDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'checkIn': value.checkIn, 'checkOut': value.checkOut, 'comments': value.comments, 'pause': value.pause, }; } exports.TimesheetEntryUpdateDTOToJSON = TimesheetEntryUpdateDTOToJSON; //# sourceMappingURL=TimesheetEntryUpdateDTO.js.map