/* 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.
 */
/**
 * Check if a given object implements the DocumentFields interface.
 */
export function instanceOfDocumentFields(value) {
    return true;
}
export function DocumentFieldsFromJSON(json) {
    return DocumentFieldsFromJSONTyped(json, false);
}
export function DocumentFieldsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        'description': json['description'] == null ? undefined : json['description'],
        'parent_id': json['parent_id'] == null ? undefined : json['parent_id'],
        'node_type': json['node_type'] == null ? undefined : json['node_type'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        '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'],
        'acl': json['acl'] == null ? undefined : json['acl'],
        'update_acl': json['update_acl'] == null ? undefined : json['update_acl'],
        '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 DocumentFieldsToJSON(json) {
    return DocumentFieldsToJSONTyped(json, false);
}
export function DocumentFieldsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'description': value['description'],
        'parent_id': value['parent_id'],
        'node_type': value['node_type'],
        'etag': value['etag'],
        'created_on': value['created_on'],
        'modified_on': value['modified_on'],
        'created_by': value['created_by'],
        'modified_by': value['modified_by'],
        'acl': value['acl'],
        'update_acl': value['update_acl'],
        'diagnosis': value['diagnosis'],
        'tissue': value['tissue'],
        'consortium': value['consortium'],
        'organ': value['organ'],
    };
}
//# sourceMappingURL=DocumentFields.js.map