tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
67 lines (57 loc) • 1.35 kB
text/typescript
/* 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;
isInstance = isInstance && "message" in value;
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': json['message'],
};
}
export function ErrorDTOToJSON(value?: ErrorDTO | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'message': value.message,
};
}