tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
74 lines (64 loc) • 1.69 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 AccountInfoDTO
*/
export interface AccountInfoDTO {
/**
*
* @type {number}
* @memberof AccountInfoDTO
*/
availableHolidays?: number;
/**
*
* @type {string}
* @memberof AccountInfoDTO
*/
companyId?: string;
}
/**
* Check if a given object implements the AccountInfoDTO interface.
*/
export function instanceOfAccountInfoDTO(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function AccountInfoDTOFromJSON(json: any): AccountInfoDTO {
return AccountInfoDTOFromJSONTyped(json, false);
}
export function AccountInfoDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountInfoDTO {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'availableHolidays': !exists(json, 'availableHolidays') ? undefined : json['availableHolidays'],
'companyId': !exists(json, 'companyId') ? undefined : json['companyId'],
};
}
export function AccountInfoDTOToJSON(value?: AccountInfoDTO | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'availableHolidays': value.availableHolidays,
'companyId': value.companyId,
};
}