/* tslint:disable */
/* eslint-disable */
/**
 * Vectorize API (Beta)
 * API for Vectorize services
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * 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 { UpdatedDestinationConnectorData } from './UpdatedDestinationConnectorData';
import {
    UpdatedDestinationConnectorDataFromJSON,
    UpdatedDestinationConnectorDataFromJSONTyped,
    UpdatedDestinationConnectorDataToJSON,
    UpdatedDestinationConnectorDataToJSONTyped,
} from './UpdatedDestinationConnectorData';

/**
 * 
 * @export
 * @interface UpdateDestinationConnectorResponse
 */
export interface UpdateDestinationConnectorResponse {
    /**
     * 
     * @type {string}
     * @memberof UpdateDestinationConnectorResponse
     */
    message: string;
    /**
     * 
     * @type {UpdatedDestinationConnectorData}
     * @memberof UpdateDestinationConnectorResponse
     */
    data: UpdatedDestinationConnectorData;
}

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

export function UpdateDestinationConnectorResponseFromJSON(json: any): UpdateDestinationConnectorResponse {
    return UpdateDestinationConnectorResponseFromJSONTyped(json, false);
}

export function UpdateDestinationConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDestinationConnectorResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'message': json['message'],
        'data': UpdatedDestinationConnectorDataFromJSON(json['data']),
    };
}

export function UpdateDestinationConnectorResponseToJSON(json: any): UpdateDestinationConnectorResponse {
    return UpdateDestinationConnectorResponseToJSONTyped(json, false);
}

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

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

