/* 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 { FileSnapshot } from './FileSnapshot';
import {
    FileSnapshotFromJSON,
    FileSnapshotFromJSONTyped,
    FileSnapshotToJSON,
    FileSnapshotToJSONTyped,
} from './FileSnapshot';

/**
 * 
 * @export
 * @interface SnapshotsResponse
 */
export interface SnapshotsResponse {
    /**
     * 
     * @type {Array<FileSnapshot>}
     * @memberof SnapshotsResponse
     */
    data: Array<FileSnapshot>;
}

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

export function SnapshotsResponseFromJSON(json: any): SnapshotsResponse {
    return SnapshotsResponseFromJSONTyped(json, false);
}

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

export function SnapshotsResponseToJSON(json: any): SnapshotsResponse {
    return SnapshotsResponseToJSONTyped(json, false);
}

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

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

