tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
72 lines • 3.08 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.AdjustedTimesheetDTOToJSON = exports.AdjustedTimesheetDTOFromJSONTyped = exports.AdjustedTimesheetDTOFromJSON = exports.instanceOfAdjustedTimesheetDTO = void 0;
const runtime_1 = require("../runtime");
const AdjustedTimesheetEmployeeInfo_1 = require("./AdjustedTimesheetEmployeeInfo");
const AdjustedTimesheetEntryDTO_1 = require("./AdjustedTimesheetEntryDTO");
/**
* Check if a given object implements the AdjustedTimesheetDTO interface.
*/
function instanceOfAdjustedTimesheetDTO(value) {
let isInstance = true;
isInstance = isInstance && "employeeID" in value;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "month" in value;
isInstance = isInstance && "projectID" in value;
isInstance = isInstance && "status" in value;
return isInstance;
}
exports.instanceOfAdjustedTimesheetDTO = instanceOfAdjustedTimesheetDTO;
function AdjustedTimesheetDTOFromJSON(json) {
return AdjustedTimesheetDTOFromJSONTyped(json, false);
}
exports.AdjustedTimesheetDTOFromJSON = AdjustedTimesheetDTOFromJSON;
function AdjustedTimesheetDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'employeeData': !(0, runtime_1.exists)(json, 'employeeData') ? undefined : (0, AdjustedTimesheetEmployeeInfo_1.AdjustedTimesheetEmployeeInfoFromJSON)(json['employeeData']),
'employeeID': json['employeeID'],
'entries': !(0, runtime_1.exists)(json, 'entries') ? undefined : (json['entries'].map(AdjustedTimesheetEntryDTO_1.AdjustedTimesheetEntryDTOFromJSON)),
'expectedHours': !(0, runtime_1.exists)(json, 'expectedHours') ? undefined : json['expectedHours'],
'id': json['id'],
'month': json['month'],
'projectID': json['projectID'],
'status': json['status'],
};
}
exports.AdjustedTimesheetDTOFromJSONTyped = AdjustedTimesheetDTOFromJSONTyped;
function AdjustedTimesheetDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'employeeData': (0, AdjustedTimesheetEmployeeInfo_1.AdjustedTimesheetEmployeeInfoToJSON)(value.employeeData),
'employeeID': value.employeeID,
'entries': value.entries === undefined ? undefined : (value.entries.map(AdjustedTimesheetEntryDTO_1.AdjustedTimesheetEntryDTOToJSON)),
'expectedHours': value.expectedHours,
'id': value.id,
'month': value.month,
'projectID': value.projectID,
'status': value.status,
};
}
exports.AdjustedTimesheetDTOToJSON = AdjustedTimesheetDTOToJSON;
//# sourceMappingURL=AdjustedTimesheetDTO.js.map