tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
52 lines • 1.73 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.TeamUpdateDTOToJSON = exports.TeamUpdateDTOFromJSONTyped = exports.TeamUpdateDTOFromJSON = exports.instanceOfTeamUpdateDTO = void 0;
const runtime_1 = require("../runtime");
const UserEnrollDTO_1 = require("./UserEnrollDTO");
/**
* Check if a given object implements the TeamUpdateDTO interface.
*/
function instanceOfTeamUpdateDTO(value) {
let isInstance = true;
return isInstance;
}
exports.instanceOfTeamUpdateDTO = instanceOfTeamUpdateDTO;
function TeamUpdateDTOFromJSON(json) {
return TeamUpdateDTOFromJSONTyped(json, false);
}
exports.TeamUpdateDTOFromJSON = TeamUpdateDTOFromJSON;
function TeamUpdateDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'team': !(0, runtime_1.exists)(json, 'team') ? undefined : (json['team'].map(UserEnrollDTO_1.UserEnrollDTOFromJSON)),
};
}
exports.TeamUpdateDTOFromJSONTyped = TeamUpdateDTOFromJSONTyped;
function TeamUpdateDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'team': value.team === undefined ? undefined : (value.team.map(UserEnrollDTO_1.UserEnrollDTOToJSON)),
};
}
exports.TeamUpdateDTOToJSON = TeamUpdateDTOToJSON;
//# sourceMappingURL=TeamUpdateDTO.js.map