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