"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.instanceOfAuthenticatedSessionUserAgent = instanceOfAuthenticatedSessionUserAgent;
exports.AuthenticatedSessionUserAgentFromJSON = AuthenticatedSessionUserAgentFromJSON;
exports.AuthenticatedSessionUserAgentFromJSONTyped = AuthenticatedSessionUserAgentFromJSONTyped;
exports.AuthenticatedSessionUserAgentToJSON = AuthenticatedSessionUserAgentToJSON;
exports.AuthenticatedSessionUserAgentToJSONTyped = AuthenticatedSessionUserAgentToJSONTyped;
const AuthenticatedSessionUserAgentDevice_1 = require("./AuthenticatedSessionUserAgentDevice");
const AuthenticatedSessionUserAgentUserAgent_1 = require("./AuthenticatedSessionUserAgentUserAgent");
const AuthenticatedSessionUserAgentOs_1 = require("./AuthenticatedSessionUserAgentOs");
/**
 * Check if a given object implements the AuthenticatedSessionUserAgent interface.
 */
function instanceOfAuthenticatedSessionUserAgent(value) {
    if (!('device' in value) || value['device'] === undefined)
        return false;
    if (!('os' in value) || value['os'] === undefined)
        return false;
    if (!('userAgent' in value) || value['userAgent'] === undefined)
        return false;
    if (!('string' in value) || value['string'] === undefined)
        return false;
    return true;
}
function AuthenticatedSessionUserAgentFromJSON(json) {
    return AuthenticatedSessionUserAgentFromJSONTyped(json, false);
}
function AuthenticatedSessionUserAgentFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'device': (0, AuthenticatedSessionUserAgentDevice_1.AuthenticatedSessionUserAgentDeviceFromJSON)(json['device']),
        'os': (0, AuthenticatedSessionUserAgentOs_1.AuthenticatedSessionUserAgentOsFromJSON)(json['os']),
        'userAgent': (0, AuthenticatedSessionUserAgentUserAgent_1.AuthenticatedSessionUserAgentUserAgentFromJSON)(json['user_agent']),
        'string': json['string'],
    };
}
function AuthenticatedSessionUserAgentToJSON(json) {
    return AuthenticatedSessionUserAgentToJSONTyped(json, false);
}
function AuthenticatedSessionUserAgentToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'device': (0, AuthenticatedSessionUserAgentDevice_1.AuthenticatedSessionUserAgentDeviceToJSON)(value['device']),
        'os': (0, AuthenticatedSessionUserAgentOs_1.AuthenticatedSessionUserAgentOsToJSON)(value['os']),
        'user_agent': (0, AuthenticatedSessionUserAgentUserAgent_1.AuthenticatedSessionUserAgentUserAgentToJSON)(value['userAgent']),
        'string': value['string'],
    };
}
//# sourceMappingURL=AuthenticatedSessionUserAgent.js.map