/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.
 */

import { mapValues } from '../runtime';
/**
 * Get GeoIP Data
 * @export
 * @interface AuthenticatedSessionGeoIp
 */
export interface AuthenticatedSessionGeoIp {
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionGeoIp
     */
    continent: string;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionGeoIp
     */
    country: string;
    /**
     * 
     * @type {number}
     * @memberof AuthenticatedSessionGeoIp
     */
    lat: number;
    /**
     * 
     * @type {number}
     * @memberof AuthenticatedSessionGeoIp
     */
    _long: number;
    /**
     * 
     * @type {string}
     * @memberof AuthenticatedSessionGeoIp
     */
    city: string;
}

/**
 * Check if a given object implements the AuthenticatedSessionGeoIp interface.
 */
export function instanceOfAuthenticatedSessionGeoIp(value: object): value is AuthenticatedSessionGeoIp {
    if (!('continent' in value) || value['continent'] === undefined) return false;
    if (!('country' in value) || value['country'] === undefined) return false;
    if (!('lat' in value) || value['lat'] === undefined) return false;
    if (!('_long' in value) || value['_long'] === undefined) return false;
    if (!('city' in value) || value['city'] === undefined) return false;
    return true;
}

export function AuthenticatedSessionGeoIpFromJSON(json: any): AuthenticatedSessionGeoIp {
    return AuthenticatedSessionGeoIpFromJSONTyped(json, false);
}

export function AuthenticatedSessionGeoIpFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatedSessionGeoIp {
    if (json == null) {
        return json;
    }
    return {
        
        'continent': json['continent'],
        'country': json['country'],
        'lat': json['lat'],
        '_long': json['long'],
        'city': json['city'],
    };
}

export function AuthenticatedSessionGeoIpToJSON(json: any): AuthenticatedSessionGeoIp {
    return AuthenticatedSessionGeoIpToJSONTyped(json, false);
}

export function AuthenticatedSessionGeoIpToJSONTyped(value?: AuthenticatedSessionGeoIp | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'continent': value['continent'],
        'country': value['country'],
        'lat': value['lat'],
        'long': value['_long'],
        'city': value['city'],
    };
}

