UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

74 lines (64 loc) 1.64 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 UpdateUserDTO */ export interface UpdateUserDTO { /** * * @type {string} * @memberof UpdateUserDTO */ timeZone?: string; /** * * @type {number} * @memberof UpdateUserDTO */ workingHours?: number; } /** * Check if a given object implements the UpdateUserDTO interface. */ export function instanceOfUpdateUserDTO(value: object): boolean { let isInstance = true; return isInstance; } export function UpdateUserDTOFromJSON(json: any): UpdateUserDTO { return UpdateUserDTOFromJSONTyped(json, false); } export function UpdateUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserDTO { if ((json === undefined) || (json === null)) { return json; } return { 'timeZone': !exists(json, 'timeZone') ? undefined : json['timeZone'], 'workingHours': !exists(json, 'workingHours') ? undefined : json['workingHours'], }; } export function UpdateUserDTOToJSON(value?: UpdateUserDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'timeZone': value.timeZone, 'workingHours': value.workingHours, }; }