/* 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 { Agent } from './Agent';
import {
    AgentFromJSON,
    AgentFromJSONTyped,
    AgentToJSON,
    AgentToJSONTyped,
} from './Agent';

/**
 * 
 * @export
 * @interface DiscoverAgents200Response
 */
export interface DiscoverAgents200Response {
    /**
     * 
     * @type {Array<Agent>}
     * @memberof DiscoverAgents200Response
     */
    agents: Array<Agent>;
}

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

export function DiscoverAgents200ResponseFromJSON(json: any): DiscoverAgents200Response {
    return DiscoverAgents200ResponseFromJSONTyped(json, false);
}

export function DiscoverAgents200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscoverAgents200Response {
    if (json == null) {
        return json;
    }
    return {
        
        'agents': ((json['agents'] as Array<any>).map(AgentFromJSON)),
    };
}

export function DiscoverAgents200ResponseToJSON(json: any): DiscoverAgents200Response {
    return DiscoverAgents200ResponseToJSONTyped(json, false);
}

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

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

