"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.instanceOfExpressionPolicyRequest = instanceOfExpressionPolicyRequest;
exports.ExpressionPolicyRequestFromJSON = ExpressionPolicyRequestFromJSON;
exports.ExpressionPolicyRequestFromJSONTyped = ExpressionPolicyRequestFromJSONTyped;
exports.ExpressionPolicyRequestToJSON = ExpressionPolicyRequestToJSON;
exports.ExpressionPolicyRequestToJSONTyped = ExpressionPolicyRequestToJSONTyped;
/**
 * Check if a given object implements the ExpressionPolicyRequest interface.
 */
function instanceOfExpressionPolicyRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('expression' in value) || value['expression'] === undefined)
        return false;
    return true;
}
function ExpressionPolicyRequestFromJSON(json) {
    return ExpressionPolicyRequestFromJSONTyped(json, false);
}
function ExpressionPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
        'expression': json['expression'],
    };
}
function ExpressionPolicyRequestToJSON(json) {
    return ExpressionPolicyRequestToJSONTyped(json, false);
}
function ExpressionPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'execution_logging': value['executionLogging'],
        'expression': value['expression'],
    };
}
//# sourceMappingURL=ExpressionPolicyRequest.js.map