"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.instanceOfPolicyTestRequest = instanceOfPolicyTestRequest;
exports.PolicyTestRequestFromJSON = PolicyTestRequestFromJSON;
exports.PolicyTestRequestFromJSONTyped = PolicyTestRequestFromJSONTyped;
exports.PolicyTestRequestToJSON = PolicyTestRequestToJSON;
exports.PolicyTestRequestToJSONTyped = PolicyTestRequestToJSONTyped;
/**
 * Check if a given object implements the PolicyTestRequest interface.
 */
function instanceOfPolicyTestRequest(value) {
    if (!('user' in value) || value['user'] === undefined)
        return false;
    return true;
}
function PolicyTestRequestFromJSON(json) {
    return PolicyTestRequestFromJSONTyped(json, false);
}
function PolicyTestRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'user': json['user'],
        'context': json['context'] == null ? undefined : json['context'],
    };
}
function PolicyTestRequestToJSON(json) {
    return PolicyTestRequestToJSONTyped(json, false);
}
function PolicyTestRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'user': value['user'],
        'context': value['context'],
    };
}
//# sourceMappingURL=PolicyTestRequest.js.map