UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

94 lines (84 loc) 2.1 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 SDKTestResponseDTO */ export interface SDKTestResponseDTO { /** * * @type {boolean} * @memberof SDKTestResponseDTO */ test1: boolean; /** * * @type {number} * @memberof SDKTestResponseDTO */ test2: number; /** * * @type {string} * @memberof SDKTestResponseDTO */ test3: string; /** * * @type {string} * @memberof SDKTestResponseDTO */ test4: string; } /** * Check if a given object implements the SDKTestResponseDTO interface. */ export function instanceOfSDKTestResponseDTO(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 SDKTestResponseDTOFromJSON(json: any): SDKTestResponseDTO { return SDKTestResponseDTOFromJSONTyped(json, false); } export function SDKTestResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): SDKTestResponseDTO { if ((json === undefined) || (json === null)) { return json; } return { 'test1': json['test1'], 'test2': json['test2'], 'test3': json['test3'], 'test4': json['test4'], }; } export function SDKTestResponseDTOToJSON(value?: SDKTestResponseDTO | 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, }; }