tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
73 lines (62 loc) • 1.71 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';
import type { UserEnrollDTO } from './UserEnrollDTO';
import {
UserEnrollDTOFromJSON,
UserEnrollDTOFromJSONTyped,
UserEnrollDTOToJSON,
} from './UserEnrollDTO';
/**
*
* @export
* @interface TeamUpdateDTO
*/
export interface TeamUpdateDTO {
/**
*
* @type {Array<UserEnrollDTO>}
* @memberof TeamUpdateDTO
*/
team?: Array<UserEnrollDTO>;
}
/**
* Check if a given object implements the TeamUpdateDTO interface.
*/
export function instanceOfTeamUpdateDTO(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function TeamUpdateDTOFromJSON(json: any): TeamUpdateDTO {
return TeamUpdateDTOFromJSONTyped(json, false);
}
export function TeamUpdateDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamUpdateDTO {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'team': !exists(json, 'team') ? undefined : ((json['team'] as Array<any>).map(UserEnrollDTOFromJSON)),
};
}
export function TeamUpdateDTOToJSON(value?: TeamUpdateDTO | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'team': value.team === undefined ? undefined : ((value.team as Array<any>).map(UserEnrollDTOToJSON)),
};
}