/* 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 { CreatedDestinationConnector } from './CreatedDestinationConnector';
import {
    CreatedDestinationConnectorFromJSON,
    CreatedDestinationConnectorFromJSONTyped,
    CreatedDestinationConnectorToJSON,
    CreatedDestinationConnectorToJSONTyped,
} from './CreatedDestinationConnector';

/**
 * 
 * @export
 * @interface CreateDestinationConnectorResponse
 */
export interface CreateDestinationConnectorResponse {
    /**
     * 
     * @type {string}
     * @memberof CreateDestinationConnectorResponse
     */
    message: string;
    /**
     * 
     * @type {Array<CreatedDestinationConnector>}
     * @memberof CreateDestinationConnectorResponse
     */
    connectors: Array<CreatedDestinationConnector>;
}

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

export function CreateDestinationConnectorResponseFromJSON(json: any): CreateDestinationConnectorResponse {
    return CreateDestinationConnectorResponseFromJSONTyped(json, false);
}

export function CreateDestinationConnectorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDestinationConnectorResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'message': json['message'],
        'connectors': ((json['connectors'] as Array<any>).map(CreatedDestinationConnectorFromJSON)),
    };
}

export function CreateDestinationConnectorResponseToJSON(json: any): CreateDestinationConnectorResponse {
    return CreateDestinationConnectorResponseToJSONTyped(json, false);
}

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

    return {
        
        'message': value['message'],
        'connectors': ((value['connectors'] as Array<any>).map(CreatedDestinationConnectorToJSON)),
    };
}

