UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

94 lines (84 loc) 2.08 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 SDKTestRequestDTO */ export interface SDKTestRequestDTO { /** * * @type {string} * @memberof SDKTestRequestDTO */ test1: string; /** * * @type {string} * @memberof SDKTestRequestDTO */ test2: string; /** * * @type {number} * @memberof SDKTestRequestDTO */ test3: number; /** * * @type {boolean} * @memberof SDKTestRequestDTO */ test4: boolean; } /** * Check if a given object implements the SDKTestRequestDTO interface. */ export function instanceOfSDKTestRequestDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "test1" in value; isInstance = isInstance && "test2" in value; isInstance = isInstance && "test3" in value; isInstance = isInstance && "test4" in value; return isInstance; } export function SDKTestRequestDTOFromJSON(json: any): SDKTestRequestDTO { return SDKTestRequestDTOFromJSONTyped(json, false); } export function SDKTestRequestDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SDKTestRequestDTO { if ((json === undefined) || (json === null)) { return json; } return { 'test1': json['test1'], 'test2': json['test2'], 'test3': json['test3'], 'test4': json['test4'], }; } export function SDKTestRequestDTOToJSON(value?: SDKTestRequestDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'test1': value.test1, 'test2': value.test2, 'test3': value.test3, 'test4': value.test4, }; }