/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { EntityTypeMetadataFromJSON, EntityTypeMetadataToJSON, } from './EntityTypeMetadata';
/**
 * Check if a given object implements the EntityRegistry interface.
 */
export function instanceOfEntityRegistry(value) {
    return true;
}
export function EntityRegistryFromJSON(json) {
    return EntityRegistryFromJSONTyped(json, false);
}
export function EntityRegistryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'entityTypes': json['entityTypes'] == null ? undefined : (json['entityTypes'].map(EntityTypeMetadataFromJSON)),
    };
}
export function EntityRegistryToJSON(json) {
    return EntityRegistryToJSONTyped(json, false);
}
export function EntityRegistryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'entityTypes': value['entityTypes'] == null ? undefined : (value['entityTypes'].map(EntityTypeMetadataToJSON)),
    };
}
//# sourceMappingURL=EntityRegistry.js.map