/* 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 { DecideApprovalResponseData } from './DecideApprovalResponseData';
import {
    DecideApprovalResponseDataFromJSON,
    DecideApprovalResponseDataFromJSONTyped,
    DecideApprovalResponseDataToJSON,
    DecideApprovalResponseDataToJSONTyped,
} from './DecideApprovalResponseData';

/**
 * 
 * @export
 * @interface DecideApprovalResponse
 */
export interface DecideApprovalResponse {
    /**
     * 
     * @type {DecideApprovalResponseData}
     * @memberof DecideApprovalResponse
     */
    data: DecideApprovalResponseData;
}

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

export function DecideApprovalResponseFromJSON(json: any): DecideApprovalResponse {
    return DecideApprovalResponseFromJSONTyped(json, false);
}

export function DecideApprovalResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecideApprovalResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'data': DecideApprovalResponseDataFromJSON(json['data']),
    };
}

export function DecideApprovalResponseToJSON(json: any): DecideApprovalResponse {
    return DecideApprovalResponseToJSONTyped(json, false);
}

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

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

