UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

85 lines (75 loc) 1.86 kB
/* 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. */ import { exists, mapValues } from '../runtime'; /** * * @export * @interface SlackUserDto */ export interface SlackUserDto { /** * * @type {string} * @memberof SlackUserDto */ email: string; /** * * @type {number} * @memberof SlackUserDto */ workingHours: number; /** * * @type {string} * @memberof SlackUserDto */ timeZone: string; } /** * Check if a given object implements the SlackUserDto interface. */ export function instanceOfSlackUserDto(value: object): boolean { let isInstance = true; isInstance = isInstance && "email" in value; isInstance = isInstance && "workingHours" in value; isInstance = isInstance && "timeZone" in value; return isInstance; } export function SlackUserDtoFromJSON(json: any): SlackUserDto { return SlackUserDtoFromJSONTyped(json, false); } export function SlackUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlackUserDto { if ((json === undefined) || (json === null)) { return json; } return { 'email': json['email'], 'workingHours': json['workingHours'], 'timeZone': json['timeZone'], }; } export function SlackUserDtoToJSON(value?: SlackUserDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'workingHours': value.workingHours, 'timeZone': value.timeZone, }; }