tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
82 lines (72 loc) • 1.82 kB
text/typescript
/* 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 {string}
* @memberof SlackUserDTO
*/
timeZone?: string;
/**
*
* @type {number}
* @memberof SlackUserDTO
*/
workingHours?: number;
}
/**
* Check if a given object implements the SlackUserDTO interface.
*/
export function instanceOfSlackUserDTO(value: object): boolean {
let isInstance = true;
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': !exists(json, 'email') ? undefined : json['email'],
'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'],
'workingHours': !exists(json, 'workingHours') ? undefined : json['workingHours'],
};
}
export function SlackUserDTOToJSON(value?: SlackUserDTO | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'email': value.email,
'timeZone': value.timeZone,
'workingHours': value.workingHours,
};
}