"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.instanceOfUserSetting = instanceOfUserSetting;
exports.UserSettingFromJSON = UserSettingFromJSON;
exports.UserSettingFromJSONTyped = UserSettingFromJSONTyped;
exports.UserSettingToJSON = UserSettingToJSON;
exports.UserSettingToJSONTyped = UserSettingToJSONTyped;
/**
 * Check if a given object implements the UserSetting interface.
 */
function instanceOfUserSetting(value) {
    if (!('objectUid' in value) || value['objectUid'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('title' in value) || value['title'] === undefined)
        return false;
    return true;
}
function UserSettingFromJSON(json) {
    return UserSettingFromJSONTyped(json, false);
}
function UserSettingFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'objectUid': json['object_uid'],
        'component': json['component'],
        'title': json['title'],
        'configureUrl': json['configure_url'] == null ? undefined : json['configure_url'],
        'iconUrl': json['icon_url'] == null ? undefined : json['icon_url'],
    };
}
function UserSettingToJSON(json) {
    return UserSettingToJSONTyped(json, false);
}
function UserSettingToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'object_uid': value['objectUid'],
        'component': value['component'],
        'title': value['title'],
        'configure_url': value['configureUrl'],
        'icon_url': value['iconUrl'],
    };
}
//# sourceMappingURL=UserSetting.js.map