/* 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 { SourceStatusFromJSON, SourceStatusToJSON, } from './SourceStatus';
/**
 * Check if a given object implements the ConfiguredSourceSchema interface.
 */
export function instanceOfConfiguredSourceSchema(value) {
    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) {
    return ConfiguredSourceSchemaFromJSONTyped(json, false);
}
export function ConfiguredSourceSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'sourceKey': json['sourceKey'],
        'displayNames': json['displayNames'],
        'isEnabled': json['isEnabled'],
        'status': SourceStatusFromJSON(json['status']),
    };
}
export function ConfiguredSourceSchemaToJSON(json) {
    return ConfiguredSourceSchemaToJSONTyped(json, false);
}
export function ConfiguredSourceSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sourceKey': value['sourceKey'],
        'displayNames': value['displayNames'],
        'isEnabled': value['isEnabled'],
        'status': SourceStatusToJSON(value['status']),
    };
}
