"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDetailedCountryFieldRequest = instanceOfDetailedCountryFieldRequest;
exports.DetailedCountryFieldRequestFromJSON = DetailedCountryFieldRequestFromJSON;
exports.DetailedCountryFieldRequestFromJSONTyped = DetailedCountryFieldRequestFromJSONTyped;
exports.DetailedCountryFieldRequestToJSON = DetailedCountryFieldRequestToJSON;
exports.DetailedCountryFieldRequestToJSONTyped = DetailedCountryFieldRequestToJSONTyped;
const CountryCodeEnum_1 = require("./CountryCodeEnum");
/**
 * Check if a given object implements the DetailedCountryFieldRequest interface.
 */
function instanceOfDetailedCountryFieldRequest(value) {
    if (!('code' in value) || value['code'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function DetailedCountryFieldRequestFromJSON(json) {
    return DetailedCountryFieldRequestFromJSONTyped(json, false);
}
function DetailedCountryFieldRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'code': (0, CountryCodeEnum_1.CountryCodeEnumFromJSON)(json['code']),
        'name': json['name'],
    };
}
function DetailedCountryFieldRequestToJSON(json) {
    return DetailedCountryFieldRequestToJSONTyped(json, false);
}
function DetailedCountryFieldRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'code': (0, CountryCodeEnum_1.CountryCodeEnumToJSON)(value['code']),
        'name': value['name'],
    };
}
//# sourceMappingURL=DetailedCountryFieldRequest.js.map