"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.instanceOfSettingsRequest = instanceOfSettingsRequest;
exports.SettingsRequestFromJSON = SettingsRequestFromJSON;
exports.SettingsRequestFromJSONTyped = SettingsRequestFromJSONTyped;
exports.SettingsRequestToJSON = SettingsRequestToJSON;
exports.SettingsRequestToJSONTyped = SettingsRequestToJSONTyped;
const PatchedSettingsRequestFlags_1 = require("./PatchedSettingsRequestFlags");
/**
 * Check if a given object implements the SettingsRequest interface.
 */
function instanceOfSettingsRequest(value) {
    if (!('flags' in value) || value['flags'] === undefined)
        return false;
    return true;
}
function SettingsRequestFromJSON(json) {
    return SettingsRequestFromJSONTyped(json, false);
}
function SettingsRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'avatars': json['avatars'] == null ? undefined : json['avatars'],
        'defaultUserChangeName': json['default_user_change_name'] == null ? undefined : json['default_user_change_name'],
        'defaultUserChangeEmail': json['default_user_change_email'] == null ? undefined : json['default_user_change_email'],
        'defaultUserChangeUsername': json['default_user_change_username'] == null ? undefined : json['default_user_change_username'],
        'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
        'reputationLowerLimit': json['reputation_lower_limit'] == null ? undefined : json['reputation_lower_limit'],
        'reputationUpperLimit': json['reputation_upper_limit'] == null ? undefined : json['reputation_upper_limit'],
        'footerLinks': json['footer_links'] == null ? undefined : json['footer_links'],
        'gdprCompliance': json['gdpr_compliance'] == null ? undefined : json['gdpr_compliance'],
        'impersonation': json['impersonation'] == null ? undefined : json['impersonation'],
        'impersonationRequireReason': json['impersonation_require_reason'] == null ? undefined : json['impersonation_require_reason'],
        'defaultTokenDuration': json['default_token_duration'] == null ? undefined : json['default_token_duration'],
        'defaultTokenLength': json['default_token_length'] == null ? undefined : json['default_token_length'],
        'flags': (0, PatchedSettingsRequestFlags_1.PatchedSettingsRequestFlagsFromJSON)(json['flags']),
    };
}
function SettingsRequestToJSON(json) {
    return SettingsRequestToJSONTyped(json, false);
}
function SettingsRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'avatars': value['avatars'],
        'default_user_change_name': value['defaultUserChangeName'],
        'default_user_change_email': value['defaultUserChangeEmail'],
        'default_user_change_username': value['defaultUserChangeUsername'],
        'event_retention': value['eventRetention'],
        'reputation_lower_limit': value['reputationLowerLimit'],
        'reputation_upper_limit': value['reputationUpperLimit'],
        'footer_links': value['footerLinks'],
        'gdpr_compliance': value['gdprCompliance'],
        'impersonation': value['impersonation'],
        'impersonation_require_reason': value['impersonationRequireReason'],
        'default_token_duration': value['defaultTokenDuration'],
        'default_token_length': value['defaultTokenLength'],
        'flags': (0, PatchedSettingsRequestFlags_1.PatchedSettingsRequestFlagsToJSON)(value['flags']),
    };
}
//# sourceMappingURL=SettingsRequest.js.map