/* 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 { RecentPath } from './RecentPath';
import {
    RecentPathFromJSON,
    RecentPathFromJSONTyped,
    RecentPathToJSON,
    RecentPathToJSONTyped,
} from './RecentPath';

/**
 *
 * @export
 * @interface RecentPathsResponse
 */
export interface RecentPathsResponse {
    /**
     *
     * @type {Array<RecentPath>}
     * @memberof RecentPathsResponse
     */
    data: Array<RecentPath>;
}

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

export function RecentPathsResponseFromJSON(json: any): RecentPathsResponse {
    return RecentPathsResponseFromJSONTyped(json, false);
}

export function RecentPathsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentPathsResponse {
    if (json == null) {
        return json;
    }
    return {

        'data': ((json['data'] as Array<any>).map(RecentPathFromJSON)),
    };
}

export function RecentPathsResponseToJSON(json: any): RecentPathsResponse {
    return RecentPathsResponseToJSONTyped(json, false);
}

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

    return {

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