/* 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 { CreateApprovalResponseData } from './CreateApprovalResponseData';
import {
    CreateApprovalResponseDataFromJSON,
    CreateApprovalResponseDataFromJSONTyped,
    CreateApprovalResponseDataToJSON,
    CreateApprovalResponseDataToJSONTyped,
} from './CreateApprovalResponseData';

/**
 * 
 * @export
 * @interface CreateApprovalResponse
 */
export interface CreateApprovalResponse {
    /**
     * 
     * @type {CreateApprovalResponseData}
     * @memberof CreateApprovalResponse
     */
    data: CreateApprovalResponseData;
}

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

export function CreateApprovalResponseFromJSON(json: any): CreateApprovalResponse {
    return CreateApprovalResponseFromJSONTyped(json, false);
}

export function CreateApprovalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApprovalResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': CreateApprovalResponseDataFromJSON(json['data']),
    };
}

export function CreateApprovalResponseToJSON(json: any): CreateApprovalResponse {
    return CreateApprovalResponseToJSONTyped(json, false);
}

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

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

