tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
65 lines • 2.52 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.TimesheetEntryDTOToJSON = exports.TimesheetEntryDTOFromJSONTyped = exports.TimesheetEntryDTOFromJSON = exports.instanceOfTimesheetEntryDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the TimesheetEntryDTO interface.
*/
function instanceOfTimesheetEntryDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfTimesheetEntryDTO = instanceOfTimesheetEntryDTO;
function TimesheetEntryDTOFromJSON(json) {
return TimesheetEntryDTOFromJSONTyped(json, false);
}
exports.TimesheetEntryDTOFromJSON = TimesheetEntryDTOFromJSON;
function TimesheetEntryDTOFromJSONTyped(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'],
'day': !(0, runtime_1.exists)(json, 'day') ? undefined : json['day'],
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'isEmployeeHoliday': !(0, runtime_1.exists)(json, 'isEmployeeHoliday') ? undefined : json['isEmployeeHoliday'],
'isHoliday': !(0, runtime_1.exists)(json, 'isHoliday') ? undefined : json['isHoliday'],
'pause': !(0, runtime_1.exists)(json, 'pause') ? undefined : json['pause'],
};
}
exports.TimesheetEntryDTOFromJSONTyped = TimesheetEntryDTOFromJSONTyped;
function TimesheetEntryDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'checkIn': value.checkIn,
'checkOut': value.checkOut,
'comments': value.comments,
'day': value.day,
'id': value.id,
'isEmployeeHoliday': value.isEmployeeHoliday,
'isHoliday': value.isHoliday,
'pause': value.pause,
};
}
exports.TimesheetEntryDTOToJSON = TimesheetEntryDTOToJSON;
//# sourceMappingURL=TimesheetEntryDTO.js.map