/* 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 { ContinueSessionResponseData } from './ContinueSessionResponseData';
import {
    ContinueSessionResponseDataFromJSON,
    ContinueSessionResponseDataFromJSONTyped,
    ContinueSessionResponseDataToJSON,
    ContinueSessionResponseDataToJSONTyped,
} from './ContinueSessionResponseData';

/**
 *
 * @export
 * @interface ContinueSessionResponse
 */
export interface ContinueSessionResponse {
    /**
     *
     * @type {ContinueSessionResponseData}
     * @memberof ContinueSessionResponse
     */
    data: ContinueSessionResponseData;
}

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

export function ContinueSessionResponseFromJSON(json: any): ContinueSessionResponse {
    return ContinueSessionResponseFromJSONTyped(json, false);
}

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

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

export function ContinueSessionResponseToJSON(json: any): ContinueSessionResponse {
    return ContinueSessionResponseToJSONTyped(json, false);
}

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

    return {

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