"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.6.4
 * 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.instanceOfDetailedCountry = instanceOfDetailedCountry;
exports.DetailedCountryFromJSON = DetailedCountryFromJSON;
exports.DetailedCountryFromJSONTyped = DetailedCountryFromJSONTyped;
exports.DetailedCountryToJSON = DetailedCountryToJSON;
exports.DetailedCountryToJSONTyped = DetailedCountryToJSONTyped;
const CountryCodeEnum_1 = require("./CountryCodeEnum");
/**
 * Check if a given object implements the DetailedCountry interface.
 */
function instanceOfDetailedCountry(value) {
    if (!('code' in value) || value['code'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function DetailedCountryFromJSON(json) {
    return DetailedCountryFromJSONTyped(json, false);
}
function DetailedCountryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
        'name': json['name'],
    };
}
function DetailedCountryToJSON(json) {
    return DetailedCountryToJSONTyped(json, false);
}
function DetailedCountryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value['code']),
        'name': value['name'],
    };
}
//# sourceMappingURL=DetailedCountry.js.map