UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

54 lines 1.67 kB
"use strict"; /* 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.UpdateUserDtoToJSON = exports.UpdateUserDtoFromJSONTyped = exports.UpdateUserDtoFromJSON = exports.instanceOfUpdateUserDto = void 0; /** * Check if a given object implements the UpdateUserDto interface. */ function instanceOfUpdateUserDto(value) { let isInstance = true; isInstance = isInstance && "workingHours" in value; isInstance = isInstance && "timeZone" in value; return isInstance; } exports.instanceOfUpdateUserDto = instanceOfUpdateUserDto; function UpdateUserDtoFromJSON(json) { return UpdateUserDtoFromJSONTyped(json, false); } exports.UpdateUserDtoFromJSON = UpdateUserDtoFromJSON; function UpdateUserDtoFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'workingHours': json['workingHours'], 'timeZone': json['timeZone'], }; } exports.UpdateUserDtoFromJSONTyped = UpdateUserDtoFromJSONTyped; function UpdateUserDtoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'workingHours': value.workingHours, 'timeZone': value.timeZone, }; } exports.UpdateUserDtoToJSON = UpdateUserDtoToJSON; //# sourceMappingURL=UpdateUserDto.js.map