/* 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';
import type { UserSettings } from './UserSettings';
import {
    UserSettingsFromJSON,
    UserSettingsFromJSONTyped,
    UserSettingsToJSON,
    UserSettingsToJSONTyped,
} from './UserSettings';

/**
 * 
 * @export
 * @interface UserSettingsResponse
 */
export interface UserSettingsResponse {
    /**
     * 
     * @type {UserSettings}
     * @memberof UserSettingsResponse
     */
    data: UserSettings;
}

/**
 * Check if a given object implements the UserSettingsResponse interface.
 */
export function instanceOfUserSettingsResponse(value: object): value is UserSettingsResponse {
    if (!('data' in value) || value['data'] === undefined) return false;
    return true;
}

export function UserSettingsResponseFromJSON(json: any): UserSettingsResponse {
    return UserSettingsResponseFromJSONTyped(json, false);
}

export function UserSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSettingsResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': UserSettingsFromJSON(json['data']),
    };
}

export function UserSettingsResponseToJSON(json: any): UserSettingsResponse {
    return UserSettingsResponseToJSONTyped(json, false);
}

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

    return {
        
        'data': UserSettingsToJSON(value['data']),
    };
}

