"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.instanceOfPatchedGeoIPPolicyRequest = instanceOfPatchedGeoIPPolicyRequest;
exports.PatchedGeoIPPolicyRequestFromJSON = PatchedGeoIPPolicyRequestFromJSON;
exports.PatchedGeoIPPolicyRequestFromJSONTyped = PatchedGeoIPPolicyRequestFromJSONTyped;
exports.PatchedGeoIPPolicyRequestToJSON = PatchedGeoIPPolicyRequestToJSON;
exports.PatchedGeoIPPolicyRequestToJSONTyped = PatchedGeoIPPolicyRequestToJSONTyped;
const CountryCodeEnum_1 = require("./CountryCodeEnum");
/**
 * Check if a given object implements the PatchedGeoIPPolicyRequest interface.
 */
function instanceOfPatchedGeoIPPolicyRequest(value) {
    return true;
}
function PatchedGeoIPPolicyRequestFromJSON(json) {
    return PatchedGeoIPPolicyRequestFromJSONTyped(json, false);
}
function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
        'asns': json['asns'] == null ? undefined : json['asns'],
        'countries': json['countries'] == null ? undefined : (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
        'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
        'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
        'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
        'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
        'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
        'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
    };
}
function PatchedGeoIPPolicyRequestToJSON(json) {
    return PatchedGeoIPPolicyRequestToJSONTyped(json, false);
}
function PatchedGeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'execution_logging': value['executionLogging'],
        'asns': value['asns'],
        'countries': value['countries'] == null ? undefined : (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
        'check_history_distance': value['checkHistoryDistance'],
        'history_max_distance_km': value['historyMaxDistanceKm'],
        'distance_tolerance_km': value['distanceToleranceKm'],
        'history_login_count': value['historyLoginCount'],
        'check_impossible_travel': value['checkImpossibleTravel'],
        'impossible_tolerance_km': value['impossibleToleranceKm'],
    };
}
//# sourceMappingURL=PatchedGeoIPPolicyRequest.js.map