/* 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 { BasicAccessRequirementStatusFromJSONTyped, BasicAccessRequirementStatusToJSON, } from './BasicAccessRequirementStatus';
import { ManagedACTAccessRequirementStatusFromJSONTyped, ManagedACTAccessRequirementStatusToJSON, } from './ManagedACTAccessRequirementStatus';
export function AccessRequirementStatusFromJSON(json) {
    return AccessRequirementStatusFromJSONTyped(json, false);
}
export function AccessRequirementStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.dataaccess.BasicAccessRequirementStatus':
            return Object.assign({}, BasicAccessRequirementStatusFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.dataaccess.BasicAccessRequirementStatus' });
        case 'org.sagebionetworks.repo.model.dataaccess.ManagedACTAccessRequirementStatus':
            return Object.assign({}, ManagedACTAccessRequirementStatusFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.dataaccess.ManagedACTAccessRequirementStatus' });
        default:
            return json;
    }
}
export function AccessRequirementStatusToJSON(json) {
    return AccessRequirementStatusToJSONTyped(json, false);
}
export function AccessRequirementStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.dataaccess.BasicAccessRequirementStatus':
            return Object.assign({}, BasicAccessRequirementStatusToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.dataaccess.BasicAccessRequirementStatus' });
        case 'org.sagebionetworks.repo.model.dataaccess.ManagedACTAccessRequirementStatus':
            return Object.assign({}, ManagedACTAccessRequirementStatusToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.dataaccess.ManagedACTAccessRequirementStatus' });
        default:
            return value;
    }
}
//# sourceMappingURL=AccessRequirementStatus.js.map