tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
55 lines • 1.71 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.HolidayDTOToJSON = exports.HolidayDTOFromJSONTyped = exports.HolidayDTOFromJSON = exports.instanceOfHolidayDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the HolidayDTO interface.
*/
function instanceOfHolidayDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfHolidayDTO = instanceOfHolidayDTO;
function HolidayDTOFromJSON(json) {
return HolidayDTOFromJSONTyped(json, false);
}
exports.HolidayDTOFromJSON = HolidayDTOFromJSON;
function HolidayDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'date': !(0, runtime_1.exists)(json, 'date') ? undefined : json['date'],
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'userID': !(0, runtime_1.exists)(json, 'userID') ? undefined : json['userID'],
};
}
exports.HolidayDTOFromJSONTyped = HolidayDTOFromJSONTyped;
function HolidayDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'date': value.date,
'id': value.id,
'userID': value.userID,
};
}
exports.HolidayDTOToJSON = HolidayDTOToJSON;
//# sourceMappingURL=HolidayDTO.js.map