"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.instanceOfSessionUser = instanceOfSessionUser;
exports.SessionUserFromJSON = SessionUserFromJSON;
exports.SessionUserFromJSONTyped = SessionUserFromJSONTyped;
exports.SessionUserToJSON = SessionUserToJSON;
exports.SessionUserToJSONTyped = SessionUserToJSONTyped;
const UserSelf_1 = require("./UserSelf");
/**
 * Check if a given object implements the SessionUser interface.
 */
function instanceOfSessionUser(value) {
    if (!('user' in value) || value['user'] === undefined)
        return false;
    return true;
}
function SessionUserFromJSON(json) {
    return SessionUserFromJSONTyped(json, false);
}
function SessionUserFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'user': (0, UserSelf_1.UserSelfFromJSON)(json['user']),
        'original': json['original'] == null ? undefined : (0, UserSelf_1.UserSelfFromJSON)(json['original']),
    };
}
function SessionUserToJSON(json) {
    return SessionUserToJSONTyped(json, false);
}
function SessionUserToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'user': (0, UserSelf_1.UserSelfToJSON)(value['user']),
        'original': (0, UserSelf_1.UserSelfToJSON)(value['original']),
    };
}
//# sourceMappingURL=SessionUser.js.map