/* 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 { EntityPathFromJSON, EntityPathToJSON, } from './EntityPath';
/**
 * Check if a given object implements the Hit interface.
 */
export function instanceOfHit(value) {
    return true;
}
export function HitFromJSON(json) {
    return HitFromJSONTyped(json, false);
}
export function HitFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'name': json['name'] == null ? undefined : json['name'],
        'alias': json['alias'] == null ? undefined : json['alias'],
        'path': json['path'] == null ? undefined : EntityPathFromJSON(json['path']),
        'description': json['description'] == null ? undefined : json['description'],
        'node_type': json['node_type'] == null ? undefined : json['node_type'],
        'created_on': json['created_on'] == null ? undefined : json['created_on'],
        'modified_on': json['modified_on'] == null ? undefined : json['modified_on'],
        'created_by': json['created_by'] == null ? undefined : json['created_by'],
        'modified_by': json['modified_by'] == null ? undefined : json['modified_by'],
        'diagnosis': json['diagnosis'] == null ? undefined : json['diagnosis'],
        'tissue': json['tissue'] == null ? undefined : json['tissue'],
        'consortium': json['consortium'] == null ? undefined : json['consortium'],
        'organ': json['organ'] == null ? undefined : json['organ'],
    };
}
export function HitToJSON(json) {
    return HitToJSONTyped(json, false);
}
export function HitToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'name': value['name'],
        'alias': value['alias'],
        'path': EntityPathToJSON(value['path']),
        'description': value['description'],
        'node_type': value['node_type'],
        'created_on': value['created_on'],
        'modified_on': value['modified_on'],
        'created_by': value['created_by'],
        'modified_by': value['modified_by'],
        'diagnosis': value['diagnosis'],
        'tissue': value['tissue'],
        'consortium': value['consortium'],
        'organ': value['organ'],
    };
}
//# sourceMappingURL=Hit.js.map