/* 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';
/**
 * 
 * @export
 * @interface BulkRestoreDraftsRequest
 */
export interface BulkRestoreDraftsRequest {
    /**
     * Draft sessions to restore from discarded status
     * @type {Array<string>}
     * @memberof BulkRestoreDraftsRequest
     */
    sessionIds: Array<string>;
}

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

export function BulkRestoreDraftsRequestFromJSON(json: any): BulkRestoreDraftsRequest {
    return BulkRestoreDraftsRequestFromJSONTyped(json, false);
}

export function BulkRestoreDraftsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkRestoreDraftsRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'sessionIds': json['session_ids'],
    };
}

export function BulkRestoreDraftsRequestToJSON(json: any): BulkRestoreDraftsRequest {
    return BulkRestoreDraftsRequestToJSONTyped(json, false);
}

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

    return {
        
        'session_ids': value['sessionIds'],
    };
}

