UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

114 lines (104 loc) 2.88 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 EmployeeProjectDTO */ export interface EmployeeProjectDTO { /** * * @type {string} * @memberof EmployeeProjectDTO */ clientId?: string; /** * * @type {boolean} * @memberof EmployeeProjectDTO */ closed?: boolean; /** * * @type {string} * @memberof EmployeeProjectDTO */ description?: string; /** * * @type {string} * @memberof EmployeeProjectDTO */ githubOrganization?: string; /** * * @type {string} * @memberof EmployeeProjectDTO */ id?: string; /** * * @type {string} * @memberof EmployeeProjectDTO */ jiraOrganization?: string; /** * * @type {string} * @memberof EmployeeProjectDTO */ projectName?: string; } /** * Check if a given object implements the EmployeeProjectDTO interface. */ export function instanceOfEmployeeProjectDTO(value: object): boolean { let isInstance = true; return isInstance; } export function EmployeeProjectDTOFromJSON(json: any): EmployeeProjectDTO { return EmployeeProjectDTOFromJSONTyped(json, false); } export function EmployeeProjectDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmployeeProjectDTO { if ((json === undefined) || (json === null)) { return json; } return { 'clientId': !exists(json, 'clientId') ? undefined : json['clientId'], 'closed': !exists(json, 'closed') ? undefined : json['closed'], 'description': !exists(json, 'description') ? undefined : json['description'], 'githubOrganization': !exists(json, 'githubOrganization') ? undefined : json['githubOrganization'], 'id': !exists(json, 'id') ? undefined : json['id'], 'jiraOrganization': !exists(json, 'jiraOrganization') ? undefined : json['jiraOrganization'], 'projectName': !exists(json, 'projectName') ? undefined : json['projectName'], }; } export function EmployeeProjectDTOToJSON(value?: EmployeeProjectDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'clientId': value.clientId, 'closed': value.closed, 'description': value.description, 'githubOrganization': value.githubOrganization, 'id': value.id, 'jiraOrganization': value.jiraOrganization, 'projectName': value.projectName, }; }