tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
63 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.EmployeeProjectDTOToJSON = exports.EmployeeProjectDTOFromJSONTyped = exports.EmployeeProjectDTOFromJSON = exports.instanceOfEmployeeProjectDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the EmployeeProjectDTO interface.
*/
function instanceOfEmployeeProjectDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfEmployeeProjectDTO = instanceOfEmployeeProjectDTO;
function EmployeeProjectDTOFromJSON(json) {
return EmployeeProjectDTOFromJSONTyped(json, false);
}
exports.EmployeeProjectDTOFromJSON = EmployeeProjectDTOFromJSON;
function EmployeeProjectDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'clientId': !(0, runtime_1.exists)(json, 'clientId') ? undefined : json['clientId'],
'closed': !(0, runtime_1.exists)(json, 'closed') ? undefined : json['closed'],
'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
'githubOrganization': !(0, runtime_1.exists)(json, 'githubOrganization') ? undefined : json['githubOrganization'],
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'jiraOrganization': !(0, runtime_1.exists)(json, 'jiraOrganization') ? undefined : json['jiraOrganization'],
'projectName': !(0, runtime_1.exists)(json, 'projectName') ? undefined : json['projectName'],
};
}
exports.EmployeeProjectDTOFromJSONTyped = EmployeeProjectDTOFromJSONTyped;
function EmployeeProjectDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'clientId': value.clientId,
'closed': value.closed,
'description': value.description,
'githubOrganization': value.githubOrganization,
'id': value.id,
'jiraOrganization': value.jiraOrganization,
'projectName': value.projectName,
};
}
exports.EmployeeProjectDTOToJSON = EmployeeProjectDTOToJSON;
//# sourceMappingURL=EmployeeProjectDTO.js.map