UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

74 lines (64 loc) 1.73 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 TimesheetEmployeeInfo */ export interface TimesheetEmployeeInfo { /** * * @type {string} * @memberof TimesheetEmployeeInfo */ firstName?: string; /** * * @type {string} * @memberof TimesheetEmployeeInfo */ lastName?: string; } /** * Check if a given object implements the TimesheetEmployeeInfo interface. */ export function instanceOfTimesheetEmployeeInfo(value: object): boolean { let isInstance = true; return isInstance; } export function TimesheetEmployeeInfoFromJSON(json: any): TimesheetEmployeeInfo { return TimesheetEmployeeInfoFromJSONTyped(json, false); } export function TimesheetEmployeeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimesheetEmployeeInfo { if ((json === undefined) || (json === null)) { return json; } return { 'firstName': !exists(json, 'firstName') ? undefined : json['firstName'], 'lastName': !exists(json, 'lastName') ? undefined : json['lastName'], }; } export function TimesheetEmployeeInfoToJSON(value?: TimesheetEmployeeInfo | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'firstName': value.firstName, 'lastName': value.lastName, }; }