/* 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 { EntityViewFromJSONTyped, EntityViewToJSON, } from './EntityView';
import { ViewScopeFromJSONTyped, ViewScopeToJSON, } from './ViewScope';
export function HasViewTypeMaskFromJSON(json) {
    return HasViewTypeMaskFromJSONTyped(json, false);
}
export function HasViewTypeMaskFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.EntityView':
            return Object.assign({}, EntityViewFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.EntityView' });
        case 'org.sagebionetworks.repo.model.table.ViewScope':
            return Object.assign({}, ViewScopeFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.ViewScope' });
        default:
            return json;
    }
}
export function HasViewTypeMaskToJSON(json) {
    return HasViewTypeMaskToJSONTyped(json, false);
}
export function HasViewTypeMaskToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.EntityView':
            return Object.assign({}, EntityViewToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.EntityView' });
        case 'org.sagebionetworks.repo.model.table.ViewScope':
            return Object.assign({}, ViewScopeToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.ViewScope' });
        default:
            return value;
    }
}
//# sourceMappingURL=HasViewTypeMask.js.map