/* 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 { ManagedACTAccessRequirementFromJSONTyped, ManagedACTAccessRequirementToJSON, } from './ManagedACTAccessRequirement';
import { SelfSignAccessRequirementFromJSONTyped, SelfSignAccessRequirementToJSON, } from './SelfSignAccessRequirement';
export function HasAccessorRequirementFromJSON(json) {
    return HasAccessorRequirementFromJSONTyped(json, false);
}
export function HasAccessorRequirementFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement':
            return Object.assign({}, ManagedACTAccessRequirementFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement' });
        case 'org.sagebionetworks.repo.model.SelfSignAccessRequirement':
            return Object.assign({}, SelfSignAccessRequirementFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.SelfSignAccessRequirement' });
        default:
            return json;
    }
}
export function HasAccessorRequirementToJSON(json) {
    return HasAccessorRequirementToJSONTyped(json, false);
}
export function HasAccessorRequirementToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement':
            return Object.assign({}, ManagedACTAccessRequirementToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement' });
        case 'org.sagebionetworks.repo.model.SelfSignAccessRequirement':
            return Object.assign({}, SelfSignAccessRequirementToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.SelfSignAccessRequirement' });
        default:
            return value;
    }
}
//# sourceMappingURL=HasAccessorRequirement.js.map