/* 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 BulkRestoreDraftsResponseData
 */
export interface BulkRestoreDraftsResponseData {
    /**
     * 
     * @type {boolean}
     * @memberof BulkRestoreDraftsResponseData
     */
    success: boolean;
    /**
     * Sessions that failed to restore
     * @type {Array<string>}
     * @memberof BulkRestoreDraftsResponseData
     */
    failedSessions?: Array<string>;
}

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

export function BulkRestoreDraftsResponseDataFromJSON(json: any): BulkRestoreDraftsResponseData {
    return BulkRestoreDraftsResponseDataFromJSONTyped(json, false);
}

export function BulkRestoreDraftsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkRestoreDraftsResponseData {
    if (json == null) {
        return json;
    }
    return {
        
        'success': json['success'],
        'failedSessions': json['failed_sessions'] == null ? undefined : json['failed_sessions'],
    };
}

export function BulkRestoreDraftsResponseDataToJSON(json: any): BulkRestoreDraftsResponseData {
    return BulkRestoreDraftsResponseDataToJSONTyped(json, false);
}

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

    return {
        
        'success': value['success'],
        'failed_sessions': value['failedSessions'],
    };
}

