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