/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * 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 { SourceStatus } from './SourceStatus';
import {
    SourceStatusFromJSON,
    SourceStatusFromJSONTyped,
    SourceStatusToJSON,
    SourceStatusToJSONTyped,
} from './SourceStatus';

/**
 * 
 * @export
 * @interface ConfiguredSourceSchema
 */
export interface ConfiguredSourceSchema {
    /**
     * 
     * @type {string}
     * @memberof ConfiguredSourceSchema
     */
    sourceKey: string;
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof ConfiguredSourceSchema
     */
    displayNames: { [key: string]: string; };
    /**
     * 
     * @type {boolean}
     * @memberof ConfiguredSourceSchema
     */
    isEnabled: boolean;
    /**
     * 
     * @type {SourceStatus}
     * @memberof ConfiguredSourceSchema
     */
    status: SourceStatus;
}



/**
 * Check if a given object implements the ConfiguredSourceSchema interface.
 */
export function instanceOfConfiguredSourceSchema(value: object): value is ConfiguredSourceSchema {
    if (!('sourceKey' in value) || value['sourceKey'] === undefined) return false;
    if (!('displayNames' in value) || value['displayNames'] === undefined) return false;
    if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
    if (!('status' in value) || value['status'] === undefined) return false;
    return true;
}

export function ConfiguredSourceSchemaFromJSON(json: any): ConfiguredSourceSchema {
    return ConfiguredSourceSchemaFromJSONTyped(json, false);
}

export function ConfiguredSourceSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfiguredSourceSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'sourceKey': json['sourceKey'],
        'displayNames': json['displayNames'],
        'isEnabled': json['isEnabled'],
        'status': SourceStatusFromJSON(json['status']),
    };
}

export function ConfiguredSourceSchemaToJSON(json: any): ConfiguredSourceSchema {
    return ConfiguredSourceSchemaToJSONTyped(json, false);
}

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

    return {
        
        'sourceKey': value['sourceKey'],
        'displayNames': value['displayNames'],
        'isEnabled': value['isEnabled'],
        'status': SourceStatusToJSON(value['status']),
    };
}

