"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-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.instanceOfLDAPCheckAccess = instanceOfLDAPCheckAccess;
exports.LDAPCheckAccessFromJSON = LDAPCheckAccessFromJSON;
exports.LDAPCheckAccessFromJSONTyped = LDAPCheckAccessFromJSONTyped;
exports.LDAPCheckAccessToJSON = LDAPCheckAccessToJSON;
exports.LDAPCheckAccessToJSONTyped = LDAPCheckAccessToJSONTyped;
const PolicyTestResult_1 = require("./PolicyTestResult");
/**
 * Check if a given object implements the LDAPCheckAccess interface.
 */
function instanceOfLDAPCheckAccess(value) {
    if (!('access' in value) || value['access'] === undefined)
        return false;
    return true;
}
function LDAPCheckAccessFromJSON(json) {
    return LDAPCheckAccessFromJSONTyped(json, false);
}
function LDAPCheckAccessFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'hasSearchPermission': json['has_search_permission'] == null ? undefined : json['has_search_permission'],
        'access': (0, PolicyTestResult_1.PolicyTestResultFromJSON)(json['access']),
    };
}
function LDAPCheckAccessToJSON(json) {
    return LDAPCheckAccessToJSONTyped(json, false);
}
function LDAPCheckAccessToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'has_search_permission': value['hasSearchPermission'],
        'access': (0, PolicyTestResult_1.PolicyTestResultToJSON)(value['access']),
    };
}
//# sourceMappingURL=LDAPCheckAccess.js.map