/* tslint:disable */
/* eslint-disable */
/**
 * HumanLayer Daemon REST API
 * REST API for HumanLayer daemon operations, providing session management, approval workflows, and real-time event streaming capabilities. 
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface UpdateUserSettingsRequest
 */
export interface UpdateUserSettingsRequest {
    /**
     * Enable or disable advanced provider options
     * @type {boolean}
     * @memberof UpdateUserSettingsRequest
     */
    advancedProviders?: boolean;
    /**
     * Opt-in or opt-out of performance and error reporting
     * @type {boolean}
     * @memberof UpdateUserSettingsRequest
     */
    optInTelemetry?: boolean;
}

/**
 * Check if a given object implements the UpdateUserSettingsRequest interface.
 */
export function instanceOfUpdateUserSettingsRequest(value: object): value is UpdateUserSettingsRequest {
    return true;
}

export function UpdateUserSettingsRequestFromJSON(json: any): UpdateUserSettingsRequest {
    return UpdateUserSettingsRequestFromJSONTyped(json, false);
}

export function UpdateUserSettingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserSettingsRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'advancedProviders': json['advanced_providers'] == null ? undefined : json['advanced_providers'],
        'optInTelemetry': json['opt_in_telemetry'] == null ? undefined : json['opt_in_telemetry'],
    };
}

export function UpdateUserSettingsRequestToJSON(json: any): UpdateUserSettingsRequest {
    return UpdateUserSettingsRequestToJSONTyped(json, false);
}

export function UpdateUserSettingsRequestToJSONTyped(value?: UpdateUserSettingsRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'advanced_providers': value['advancedProviders'],
        'opt_in_telemetry': value['optInTelemetry'],
    };
}

