tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
57 lines • 2.28 kB
JavaScript
;
/* 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.AdjustedTimesheetUpdateEntryDTOToJSON = exports.AdjustedTimesheetUpdateEntryDTOFromJSONTyped = exports.AdjustedTimesheetUpdateEntryDTOFromJSON = exports.instanceOfAdjustedTimesheetUpdateEntryDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the AdjustedTimesheetUpdateEntryDTO interface.
*/
function instanceOfAdjustedTimesheetUpdateEntryDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfAdjustedTimesheetUpdateEntryDTO = instanceOfAdjustedTimesheetUpdateEntryDTO;
function AdjustedTimesheetUpdateEntryDTOFromJSON(json) {
return AdjustedTimesheetUpdateEntryDTOFromJSONTyped(json, false);
}
exports.AdjustedTimesheetUpdateEntryDTOFromJSON = AdjustedTimesheetUpdateEntryDTOFromJSON;
function AdjustedTimesheetUpdateEntryDTOFromJSONTyped(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.AdjustedTimesheetUpdateEntryDTOFromJSONTyped = AdjustedTimesheetUpdateEntryDTOFromJSONTyped;
function AdjustedTimesheetUpdateEntryDTOToJSON(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.AdjustedTimesheetUpdateEntryDTOToJSON = AdjustedTimesheetUpdateEntryDTOToJSON;
//# sourceMappingURL=AdjustedTimesheetUpdateEntryDTO.js.map