"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.instanceOfAuthenticatedSessionAsn = instanceOfAuthenticatedSessionAsn;
exports.AuthenticatedSessionAsnFromJSON = AuthenticatedSessionAsnFromJSON;
exports.AuthenticatedSessionAsnFromJSONTyped = AuthenticatedSessionAsnFromJSONTyped;
exports.AuthenticatedSessionAsnToJSON = AuthenticatedSessionAsnToJSON;
exports.AuthenticatedSessionAsnToJSONTyped = AuthenticatedSessionAsnToJSONTyped;
/**
 * Check if a given object implements the AuthenticatedSessionAsn interface.
 */
function instanceOfAuthenticatedSessionAsn(value) {
    if (!('asn' in value) || value['asn'] === undefined)
        return false;
    if (!('asOrg' in value) || value['asOrg'] === undefined)
        return false;
    if (!('network' in value) || value['network'] === undefined)
        return false;
    return true;
}
function AuthenticatedSessionAsnFromJSON(json) {
    return AuthenticatedSessionAsnFromJSONTyped(json, false);
}
function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'asn': json['asn'],
        'asOrg': json['as_org'],
        'network': json['network'],
    };
}
function AuthenticatedSessionAsnToJSON(json) {
    return AuthenticatedSessionAsnToJSONTyped(json, false);
}
function AuthenticatedSessionAsnToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'asn': value['asn'],
        'as_org': value['asOrg'],
        'network': value['network'],
    };
}
//# sourceMappingURL=AuthenticatedSessionAsn.js.map