/* 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 CreateApprovalResponseData
 */
export interface CreateApprovalResponseData {
    /**
     * Created approval ID
     * @type {string}
     * @memberof CreateApprovalResponseData
     */
    approvalId: string;
}

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

export function CreateApprovalResponseDataFromJSON(json: any): CreateApprovalResponseData {
    return CreateApprovalResponseDataFromJSONTyped(json, false);
}

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

        'approvalId': json['approval_id'],
    };
}

export function CreateApprovalResponseDataToJSON(json: any): CreateApprovalResponseData {
    return CreateApprovalResponseDataToJSONTyped(json, false);
}

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

    return {

        'approval_id': value['approvalId'],
    };
}
