"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * 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.instanceOfErrorDetail = instanceOfErrorDetail;
exports.ErrorDetailFromJSON = ErrorDetailFromJSON;
exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped;
exports.ErrorDetailToJSON = ErrorDetailToJSON;
exports.ErrorDetailToJSONTyped = ErrorDetailToJSONTyped;
/**
 * Check if a given object implements the ErrorDetail interface.
 */
function instanceOfErrorDetail(value) {
    if (!('string' in value) || value['string'] === undefined)
        return false;
    if (!('code' in value) || value['code'] === undefined)
        return false;
    return true;
}
function ErrorDetailFromJSON(json) {
    return ErrorDetailFromJSONTyped(json, false);
}
function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'string': json['string'],
        'code': json['code'],
    };
}
function ErrorDetailToJSON(json) {
    return ErrorDetailToJSONTyped(json, false);
}
function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'string': value['string'],
        'code': value['code'],
    };
}
//# sourceMappingURL=ErrorDetail.js.map