/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * Contact: hello@goauthentik.io * * 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'; /** * Generic API Error * @export * @interface GenericError */ export interface GenericError { /** * * @type {string} * @memberof GenericError */ detail: string; /** * * @type {string} * @memberof GenericError */ code?: string; } /** * Check if a given object implements the GenericError interface. */ export function instanceOfGenericError(value: object): value is GenericError { if (!('detail' in value) || value['detail'] === undefined) return false; return true; } export function GenericErrorFromJSON(json: any): GenericError { return GenericErrorFromJSONTyped(json, false); } export function GenericErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericError { if (json == null) { return json; } return { 'detail': json['detail'], 'code': json['code'] == null ? undefined : json['code'], }; } export function GenericErrorToJSON(json: any): GenericError { return GenericErrorToJSONTyped(json, false); } export function GenericErrorToJSONTyped(value?: GenericError | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'detail': value['detail'], 'code': value['code'], }; }