"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfValidationError = instanceOfValidationError;
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
exports.ValidationErrorToJSON = ValidationErrorToJSON;
exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
/**
 * Check if a given object implements the ValidationError interface.
 */
function instanceOfValidationError(value) {
    return true;
}
function ValidationErrorFromJSON(json) {
    return ValidationErrorFromJSONTyped(json, false);
}
function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        ...json,
        'nonFieldErrors': json['non_field_errors'] == null ? undefined : json['non_field_errors'],
        'code': json['code'] == null ? undefined : json['code'],
    };
}
function ValidationErrorToJSON(json) {
    return ValidationErrorToJSONTyped(json, false);
}
function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        ...value,
        'non_field_errors': value['nonFieldErrors'],
        'code': value['code'],
    };
}
//# sourceMappingURL=ValidationError.js.map