tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
51 lines • 1.42 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.ErrorDTOToJSON = exports.ErrorDTOFromJSONTyped = exports.ErrorDTOFromJSON = exports.instanceOfErrorDTO = void 0;
/**
* Check if a given object implements the ErrorDTO interface.
*/
function instanceOfErrorDTO(value) {
let isInstance = true;
isInstance = isInstance && "message" in value;
return isInstance;
}
exports.instanceOfErrorDTO = instanceOfErrorDTO;
function ErrorDTOFromJSON(json) {
return ErrorDTOFromJSONTyped(json, false);
}
exports.ErrorDTOFromJSON = ErrorDTOFromJSON;
function ErrorDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'message': json['message'],
};
}
exports.ErrorDTOFromJSONTyped = ErrorDTOFromJSONTyped;
function ErrorDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'message': value.message,
};
}
exports.ErrorDTOToJSON = ErrorDTOToJSON;
//# sourceMappingURL=ErrorDTO.js.map