/* 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 { ACTAccessRequirementFromJSONTyped, ACTAccessRequirementToJSON, } from './ACTAccessRequirement';
import { ManagedACTAccessRequirementFromJSONTyped, ManagedACTAccessRequirementToJSON, } from './ManagedACTAccessRequirement';
export function ACTAccessRequirementInterfaceFromJSON(json) {
    return ACTAccessRequirementInterfaceFromJSONTyped(json, false);
}
export function ACTAccessRequirementInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.ACTAccessRequirement':
            return Object.assign({}, ACTAccessRequirementFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.ACTAccessRequirement' });
        case 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement':
            return Object.assign({}, ManagedACTAccessRequirementFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement' });
        default:
            return json;
    }
}
export function ACTAccessRequirementInterfaceToJSON(json) {
    return ACTAccessRequirementInterfaceToJSONTyped(json, false);
}
export function ACTAccessRequirementInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.ACTAccessRequirement':
            return Object.assign({}, ACTAccessRequirementToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.ACTAccessRequirement' });
        case 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement':
            return Object.assign({}, ManagedACTAccessRequirementToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement' });
        default:
            return value;
    }
}
//# sourceMappingURL=ACTAccessRequirementInterface.js.map