/* 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.
 */
/**
 * @export
 */
export const UsedURLConcreteTypeEnum = {
    org_sagebionetworks_repo_model_provenance_UsedURL: 'org.sagebionetworks.repo.model.provenance.UsedURL'
};
/**
 * Check if a given object implements the UsedURL interface.
 */
export function instanceOfUsedURL(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(UsedURLConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function UsedURLFromJSON(json) {
    return UsedURLFromJSONTyped(json, false);
}
export function UsedURLFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'wasExecuted': json['wasExecuted'] == null ? undefined : json['wasExecuted'],
        'concreteType': json['concreteType'],
        'name': json['name'] == null ? undefined : json['name'],
        'url': json['url'] == null ? undefined : json['url'],
    };
}
export function UsedURLToJSON(json) {
    return UsedURLToJSONTyped(json, false);
}
export function UsedURLToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'wasExecuted': value['wasExecuted'],
        'concreteType': value['concreteType'],
        'name': value['name'],
        'url': value['url'],
    };
}
//# sourceMappingURL=UsedURL.js.map