"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfAuthenticatedSessionGeoIp = instanceOfAuthenticatedSessionGeoIp;
exports.AuthenticatedSessionGeoIpFromJSON = AuthenticatedSessionGeoIpFromJSON;
exports.AuthenticatedSessionGeoIpFromJSONTyped = AuthenticatedSessionGeoIpFromJSONTyped;
exports.AuthenticatedSessionGeoIpToJSON = AuthenticatedSessionGeoIpToJSON;
exports.AuthenticatedSessionGeoIpToJSONTyped = AuthenticatedSessionGeoIpToJSONTyped;
/**
 * Check if a given object implements the AuthenticatedSessionGeoIp interface.
 */
function instanceOfAuthenticatedSessionGeoIp(value) {
    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;
}
function AuthenticatedSessionGeoIpFromJSON(json) {
    return AuthenticatedSessionGeoIpFromJSONTyped(json, false);
}
function AuthenticatedSessionGeoIpFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'continent': json['continent'],
        'country': json['country'],
        'lat': json['lat'],
        '_long': json['long'],
        'city': json['city'],
    };
}
function AuthenticatedSessionGeoIpToJSON(json) {
    return AuthenticatedSessionGeoIpToJSONTyped(json, false);
}
function AuthenticatedSessionGeoIpToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'continent': value['continent'],
        'country': value['country'],
        'lat': value['lat'],
        'long': value['_long'],
        'city': value['city'],
    };
}
//# sourceMappingURL=AuthenticatedSessionGeoIp.js.map