/* 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 CreateSessionResponseData
 */
export interface CreateSessionResponseData {
    /**
     * Created session ID
     * @type {string}
     * @memberof CreateSessionResponseData
     */
    sessionId: string;
    /**
     * Created run ID
     * @type {string}
     * @memberof CreateSessionResponseData
     */
    runId: string;
}

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

export function CreateSessionResponseDataFromJSON(json: any): CreateSessionResponseData {
    return CreateSessionResponseDataFromJSONTyped(json, false);
}

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

        'sessionId': json['session_id'],
        'runId': json['run_id'],
    };
}

export function CreateSessionResponseDataToJSON(json: any): CreateSessionResponseData {
    return CreateSessionResponseDataToJSONTyped(json, false);
}

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

    return {

        'session_id': value['sessionId'],
        'run_id': value['runId'],
    };
}
