tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
53 lines • 1.85 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.TimesheetEmployeeInfoToJSON = exports.TimesheetEmployeeInfoFromJSONTyped = exports.TimesheetEmployeeInfoFromJSON = exports.instanceOfTimesheetEmployeeInfo = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the TimesheetEmployeeInfo interface.
*/
function instanceOfTimesheetEmployeeInfo(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfTimesheetEmployeeInfo = instanceOfTimesheetEmployeeInfo;
function TimesheetEmployeeInfoFromJSON(json) {
return TimesheetEmployeeInfoFromJSONTyped(json, false);
}
exports.TimesheetEmployeeInfoFromJSON = TimesheetEmployeeInfoFromJSON;
function TimesheetEmployeeInfoFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'firstName': !(0, runtime_1.exists)(json, 'firstName') ? undefined : json['firstName'],
'lastName': !(0, runtime_1.exists)(json, 'lastName') ? undefined : json['lastName'],
};
}
exports.TimesheetEmployeeInfoFromJSONTyped = TimesheetEmployeeInfoFromJSONTyped;
function TimesheetEmployeeInfoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'firstName': value.firstName,
'lastName': value.lastName,
};
}
exports.TimesheetEmployeeInfoToJSON = TimesheetEmployeeInfoToJSON;
//# sourceMappingURL=TimesheetEmployeeInfo.js.map