/* 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 { BulkRestoreDraftsResponseData } from './BulkRestoreDraftsResponseData';
import {
    BulkRestoreDraftsResponseDataFromJSON,
    BulkRestoreDraftsResponseDataFromJSONTyped,
    BulkRestoreDraftsResponseDataToJSON,
    BulkRestoreDraftsResponseDataToJSONTyped,
} from './BulkRestoreDraftsResponseData';

/**
 * 
 * @export
 * @interface BulkRestoreDraftsResponse
 */
export interface BulkRestoreDraftsResponse {
    /**
     * 
     * @type {BulkRestoreDraftsResponseData}
     * @memberof BulkRestoreDraftsResponse
     */
    data: BulkRestoreDraftsResponseData;
}

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

export function BulkRestoreDraftsResponseFromJSON(json: any): BulkRestoreDraftsResponse {
    return BulkRestoreDraftsResponseFromJSONTyped(json, false);
}

export function BulkRestoreDraftsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkRestoreDraftsResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': BulkRestoreDraftsResponseDataFromJSON(json['data']),
    };
}

export function BulkRestoreDraftsResponseToJSON(json: any): BulkRestoreDraftsResponse {
    return BulkRestoreDraftsResponseToJSONTyped(json, false);
}

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

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

