/* 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 { CreateSessionResponseData } from './CreateSessionResponseData';
import {
    CreateSessionResponseDataFromJSON,
    CreateSessionResponseDataFromJSONTyped,
    CreateSessionResponseDataToJSON,
    CreateSessionResponseDataToJSONTyped,
} from './CreateSessionResponseData';

/**
 * 
 * @export
 * @interface CreateSessionResponse
 */
export interface CreateSessionResponse {
    /**
     * 
     * @type {CreateSessionResponseData}
     * @memberof CreateSessionResponse
     */
    data: CreateSessionResponseData;
}

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

export function CreateSessionResponseFromJSON(json: any): CreateSessionResponse {
    return CreateSessionResponseFromJSONTyped(json, false);
}

export function CreateSessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSessionResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': CreateSessionResponseDataFromJSON(json['data']),
    };
}

export function CreateSessionResponseToJSON(json: any): CreateSessionResponse {
    return CreateSessionResponseToJSONTyped(json, false);
}

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

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

