/* 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 { InterruptSessionResponseData } from './InterruptSessionResponseData';
import {
    InterruptSessionResponseDataFromJSON,
    InterruptSessionResponseDataFromJSONTyped,
    InterruptSessionResponseDataToJSON,
    InterruptSessionResponseDataToJSONTyped,
} from './InterruptSessionResponseData';

/**
 *
 * @export
 * @interface InterruptSessionResponse
 */
export interface InterruptSessionResponse {
    /**
     *
     * @type {InterruptSessionResponseData}
     * @memberof InterruptSessionResponse
     */
    data: InterruptSessionResponseData;
}

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

export function InterruptSessionResponseFromJSON(json: any): InterruptSessionResponse {
    return InterruptSessionResponseFromJSONTyped(json, false);
}

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

        'data': InterruptSessionResponseDataFromJSON(json['data']),
    };
}

export function InterruptSessionResponseToJSON(json: any): InterruptSessionResponse {
    return InterruptSessionResponseToJSONTyped(json, false);
}

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

    return {

        'data': InterruptSessionResponseDataToJSON(value['data']),
    };
}
