/* 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 { ReferenceFromJSON, ReferenceToJSON, } from './Reference';
/**
 * @export
 */
export const UsedEntityConcreteTypeEnum = {
    org_sagebionetworks_repo_model_provenance_UsedEntity: 'org.sagebionetworks.repo.model.provenance.UsedEntity'
};
/**
 * Check if a given object implements the UsedEntity interface.
 */
export function instanceOfUsedEntity(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(UsedEntityConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function UsedEntityFromJSON(json) {
    return UsedEntityFromJSONTyped(json, false);
}
export function UsedEntityFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'wasExecuted': json['wasExecuted'] == null ? undefined : json['wasExecuted'],
        'concreteType': json['concreteType'],
        'reference': json['reference'] == null ? undefined : ReferenceFromJSON(json['reference']),
    };
}
export function UsedEntityToJSON(json) {
    return UsedEntityToJSONTyped(json, false);
}
export function UsedEntityToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'wasExecuted': value['wasExecuted'],
        'concreteType': value['concreteType'],
        'reference': ReferenceToJSON(value['reference']),
    };
}
//# sourceMappingURL=UsedEntity.js.map