UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

66 lines (56 loc) 1.34 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 ErrorDTO */ export interface ErrorDTO { /** * * @type {string} * @memberof ErrorDTO */ message?: string; } /** * Check if a given object implements the ErrorDTO interface. */ export function instanceOfErrorDTO(value: object): boolean { let isInstance = true; return isInstance; } export function ErrorDTOFromJSON(json: any): ErrorDTO { return ErrorDTOFromJSONTyped(json, false); } export function ErrorDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDTO { if ((json === undefined) || (json === null)) { return json; } return { 'message': !exists(json, 'message') ? undefined : json['message'], }; } export function ErrorDTOToJSON(value?: ErrorDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'message': value.message, }; }