/* tslint:disable */ /* eslint-disable */ /** * Equisoft /plan API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: latest * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ErrorResponse */ export interface ErrorResponse { /** * * @type {string} * @memberof ErrorResponse */ error?: string; /** * * @type {string} * @memberof ErrorResponse */ errorDescription?: string; /** * * @type {string} * @memberof ErrorResponse */ hint?: string; } /** * Check if a given object implements the ErrorResponse interface. */ export function instanceOfErrorResponse(value: object): value is ErrorResponse { return true; } export function ErrorResponseFromJSON(json: any): ErrorResponse { return ErrorResponseFromJSONTyped(json, false); } export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse { if (json == null) { return json; } return { 'error': json['error'] == null ? undefined : json['error'], 'errorDescription': json['error_description'] == null ? undefined : json['error_description'], 'hint': json['hint'] == null ? undefined : json['hint'], }; } export function ErrorResponseToJSON(json: any): ErrorResponse { return ErrorResponseToJSONTyped(json, false); } export function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'error': value['error'], 'error_description': value['errorDescription'], 'hint': value['hint'], }; }