/* 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 { PartialRowFromJSONTyped, PartialRowToJSON, } from './PartialRow';
import { SparseRowDtoFromJSONTyped, SparseRowDtoToJSON, } from './SparseRowDto';
export function HasEtagFromJSON(json) {
    return HasEtagFromJSONTyped(json, false);
}
export function HasEtagFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.PartialRow':
            return Object.assign({}, PartialRowFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.PartialRow' });
        case 'org.sagebionetworks.repo.model.table.SparseRowDto':
            return Object.assign({}, SparseRowDtoFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.SparseRowDto' });
        default:
            return json;
    }
}
export function HasEtagToJSON(json) {
    return HasEtagToJSONTyped(json, false);
}
export function HasEtagToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.PartialRow':
            return Object.assign({}, PartialRowToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.PartialRow' });
        case 'org.sagebionetworks.repo.model.table.SparseRowDto':
            return Object.assign({}, SparseRowDtoToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.SparseRowDto' });
        default:
            return value;
    }
}
//# sourceMappingURL=HasEtag.js.map