"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.instanceOfPolicyTestResult = instanceOfPolicyTestResult;
exports.PolicyTestResultFromJSON = PolicyTestResultFromJSON;
exports.PolicyTestResultFromJSONTyped = PolicyTestResultFromJSONTyped;
exports.PolicyTestResultToJSON = PolicyTestResultToJSON;
exports.PolicyTestResultToJSONTyped = PolicyTestResultToJSONTyped;
const LogEvent_1 = require("./LogEvent");
/**
 * Check if a given object implements the PolicyTestResult interface.
 */
function instanceOfPolicyTestResult(value) {
    if (!('passing' in value) || value['passing'] === undefined)
        return false;
    if (!('messages' in value) || value['messages'] === undefined)
        return false;
    if (!('logMessages' in value) || value['logMessages'] === undefined)
        return false;
    return true;
}
function PolicyTestResultFromJSON(json) {
    return PolicyTestResultFromJSONTyped(json, false);
}
function PolicyTestResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'passing': json['passing'],
        'messages': json['messages'],
        'logMessages': (json['log_messages'].map(LogEvent_1.LogEventFromJSON)),
    };
}
function PolicyTestResultToJSON(json) {
    return PolicyTestResultToJSONTyped(json, false);
}
function PolicyTestResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'passing': value['passing'],
    };
}
//# sourceMappingURL=PolicyTestResult.js.map