tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
60 lines • 2.02 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.GlobalTimesheetEntryDTOToJSON = exports.GlobalTimesheetEntryDTOFromJSONTyped = exports.GlobalTimesheetEntryDTOFromJSON = exports.instanceOfGlobalTimesheetEntryDTO = void 0;
/**
* Check if a given object implements the GlobalTimesheetEntryDTO interface.
*/
function instanceOfGlobalTimesheetEntryDTO(value) {
let isInstance = true;
isInstance = isInstance && "comments" in value;
isInstance = isInstance && "day" in value;
isInstance = isInstance && "hours" in value;
isInstance = isInstance && "id" in value;
return isInstance;
}
exports.instanceOfGlobalTimesheetEntryDTO = instanceOfGlobalTimesheetEntryDTO;
function GlobalTimesheetEntryDTOFromJSON(json) {
return GlobalTimesheetEntryDTOFromJSONTyped(json, false);
}
exports.GlobalTimesheetEntryDTOFromJSON = GlobalTimesheetEntryDTOFromJSON;
function GlobalTimesheetEntryDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'comments': json['comments'],
'day': json['day'],
'hours': json['hours'],
'id': json['id'],
};
}
exports.GlobalTimesheetEntryDTOFromJSONTyped = GlobalTimesheetEntryDTOFromJSONTyped;
function GlobalTimesheetEntryDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'comments': value.comments,
'day': value.day,
'hours': value.hours,
'id': value.id,
};
}
exports.GlobalTimesheetEntryDTOToJSON = GlobalTimesheetEntryDTOToJSON;
//# sourceMappingURL=GlobalTimesheetEntryDTO.js.map