UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

57 lines 1.76 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; /** * Check if a given object implements the SlackUserDto interface. */ function instanceOfSlackUserDto(value) { let isInstance = true; isInstance = isInstance && "email" in value; isInstance = isInstance && "workingHours" in value; isInstance = isInstance && "timeZone" in value; 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': json['email'], 'workingHours': json['workingHours'], 'timeZone': json['timeZone'], }; } exports.SlackUserDtoFromJSONTyped = SlackUserDtoFromJSONTyped; function SlackUserDtoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'workingHours': value.workingHours, 'timeZone': value.timeZone, }; } exports.SlackUserDtoToJSON = SlackUserDtoToJSON; //# sourceMappingURL=SlackUserDto.js.map