tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
66 lines • 2.21 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.EmployeeInvoiceDTOToJSON = exports.EmployeeInvoiceDTOFromJSONTyped = exports.EmployeeInvoiceDTOFromJSON = exports.instanceOfEmployeeInvoiceDTO = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the EmployeeInvoiceDTO interface.
*/
function instanceOfEmployeeInvoiceDTO(value) {
let isInstance = true;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "gross" in value;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "net" in value;
isInstance = isInstance && "number" in value;
return isInstance;
}
exports.instanceOfEmployeeInvoiceDTO = instanceOfEmployeeInvoiceDTO;
function EmployeeInvoiceDTOFromJSON(json) {
return EmployeeInvoiceDTOFromJSONTyped(json, false);
}
exports.EmployeeInvoiceDTOFromJSON = EmployeeInvoiceDTOFromJSON;
function EmployeeInvoiceDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'createdAt': json['createdAt'],
'gross': json['gross'],
'id': json['id'],
'isPaid': !(0, runtime_1.exists)(json, 'isPaid') ? undefined : json['isPaid'],
'net': json['net'],
'number': json['number'],
};
}
exports.EmployeeInvoiceDTOFromJSONTyped = EmployeeInvoiceDTOFromJSONTyped;
function EmployeeInvoiceDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'createdAt': value.createdAt,
'gross': value.gross,
'id': value.id,
'isPaid': value.isPaid,
'net': value.net,
'number': value.number,
};
}
exports.EmployeeInvoiceDTOToJSON = EmployeeInvoiceDTOToJSON;
//# sourceMappingURL=EmployeeInvoiceDTO.js.map