"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfImpersonationRequest = instanceOfImpersonationRequest;
exports.ImpersonationRequestFromJSON = ImpersonationRequestFromJSON;
exports.ImpersonationRequestFromJSONTyped = ImpersonationRequestFromJSONTyped;
exports.ImpersonationRequestToJSON = ImpersonationRequestToJSON;
exports.ImpersonationRequestToJSONTyped = ImpersonationRequestToJSONTyped;
/**
 * Check if a given object implements the ImpersonationRequest interface.
 */
function instanceOfImpersonationRequest(value) {
    if (!('reason' in value) || value['reason'] === undefined)
        return false;
    return true;
}
function ImpersonationRequestFromJSON(json) {
    return ImpersonationRequestFromJSONTyped(json, false);
}
function ImpersonationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'reason': json['reason'],
    };
}
function ImpersonationRequestToJSON(json) {
    return ImpersonationRequestToJSONTyped(json, false);
}
function ImpersonationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'reason': value['reason'],
    };
}
//# sourceMappingURL=ImpersonationRequest.js.map