/* 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 { SlashCommand } from './SlashCommand';
import {
    SlashCommandFromJSON,
    SlashCommandFromJSONTyped,
    SlashCommandToJSON,
    SlashCommandToJSONTyped,
} from './SlashCommand';

/**
 * 
 * @export
 * @interface SlashCommandsResponse
 */
export interface SlashCommandsResponse {
    /**
     * 
     * @type {Array<SlashCommand>}
     * @memberof SlashCommandsResponse
     */
    data: Array<SlashCommand>;
}

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

export function SlashCommandsResponseFromJSON(json: any): SlashCommandsResponse {
    return SlashCommandsResponseFromJSONTyped(json, false);
}

export function SlashCommandsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SlashCommandsResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': ((json['data'] as Array<any>).map(SlashCommandFromJSON)),
    };
}

export function SlashCommandsResponseToJSON(json: any): SlashCommandsResponse {
    return SlashCommandsResponseToJSONTyped(json, false);
}

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

    return {
        
        'data': ((value['data'] as Array<any>).map(SlashCommandToJSON)),
    };
}

