/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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. */ import { mapValues } from '../runtime'; /** * Get ASN Data * @export * @interface AuthenticatedSessionAsn */ export interface AuthenticatedSessionAsn { /** * * @type {number} * @memberof AuthenticatedSessionAsn */ asn: number; /** * * @type {string} * @memberof AuthenticatedSessionAsn */ asOrg: string | null; /** * * @type {string} * @memberof AuthenticatedSessionAsn */ network: string | null; } /** * Check if a given object implements the AuthenticatedSessionAsn interface. */ export function instanceOfAuthenticatedSessionAsn(value: object): value is AuthenticatedSessionAsn { 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; } export function AuthenticatedSessionAsnFromJSON(json: any): AuthenticatedSessionAsn { return AuthenticatedSessionAsnFromJSONTyped(json, false); } export function AuthenticatedSessionAsnFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionAsn { if (json == null) { return json; } return { 'asn': json['asn'], 'asOrg': json['as_org'], 'network': json['network'], }; } export function AuthenticatedSessionAsnToJSON(json: any): AuthenticatedSessionAsn { return AuthenticatedSessionAsnToJSONTyped(json, false); } export function AuthenticatedSessionAsnToJSONTyped(value?: AuthenticatedSessionAsn | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'asn': value['asn'], 'as_org': value['asOrg'], 'network': value['network'], }; }