UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

55 lines 1.81 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.SlackUserDTOToJSON = exports.SlackUserDTOFromJSONTyped = exports.SlackUserDTOFromJSON = exports.instanceOfSlackUserDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the SlackUserDTO interface. */ function instanceOfSlackUserDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfSlackUserDTO = instanceOfSlackUserDTO; function SlackUserDTOFromJSON(json) { return SlackUserDTOFromJSONTyped(json, false); } exports.SlackUserDTOFromJSON = SlackUserDTOFromJSON; function SlackUserDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'], 'timeZone': !(0, runtime_1.exists)(json, 'timeZone') ? undefined : json['timeZone'], 'workingHours': !(0, runtime_1.exists)(json, 'workingHours') ? undefined : json['workingHours'], }; } exports.SlackUserDTOFromJSONTyped = SlackUserDTOFromJSONTyped; function SlackUserDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'timeZone': value.timeZone, 'workingHours': value.workingHours, }; } exports.SlackUserDTOToJSON = SlackUserDTOToJSON; //# sourceMappingURL=SlackUserDTO.js.map