tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
58 lines • 1.83 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.UserDTOScToJSON = exports.UserDTOScFromJSONTyped = exports.UserDTOScFromJSON = exports.instanceOfUserDTOSc = void 0;
const runtime_1 = require("../runtime");
/**
* Check if a given object implements the UserDTOSc interface.
*/
function instanceOfUserDTOSc(value) {
let isInstance = true;
isInstance = isInstance && "name" in value;
return isInstance;
}
exports.instanceOfUserDTOSc = instanceOfUserDTOSc;
function UserDTOScFromJSON(json) {
return UserDTOScFromJSONTyped(json, false);
}
exports.UserDTOScFromJSON = UserDTOScFromJSON;
function UserDTOScFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': json['Name'],
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : json['createdAt'],
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : json['updatedAt'],
};
}
exports.UserDTOScFromJSONTyped = UserDTOScFromJSONTyped;
function UserDTOScToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'createdAt': value.createdAt,
'id': value.id,
'updatedAt': value.updatedAt,
};
}
exports.UserDTOScToJSON = UserDTOScToJSON;
//# sourceMappingURL=UserDTOSc.js.map