/* 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 { DataaccessSubmissionStatusFromJSON, DataaccessSubmissionStatusToJSON, } from './DataaccessSubmissionStatus';
/**
 * @export
 */
export const ManagedACTAccessRequirementStatusConcreteTypeEnum = {
    org_sagebionetworks_repo_model_dataaccess_ManagedACTAccessRequirementStatus: 'org.sagebionetworks.repo.model.dataaccess.ManagedACTAccessRequirementStatus'
};
/**
 * Check if a given object implements the ManagedACTAccessRequirementStatus interface.
 */
export function instanceOfManagedACTAccessRequirementStatus(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ManagedACTAccessRequirementStatusConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ManagedACTAccessRequirementStatusFromJSON(json) {
    return ManagedACTAccessRequirementStatusFromJSONTyped(json, false);
}
export function ManagedACTAccessRequirementStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'accessRequirementId': json['accessRequirementId'] == null ? undefined : json['accessRequirementId'],
        'concreteType': json['concreteType'],
        'isApproved': json['isApproved'] == null ? undefined : json['isApproved'],
        'expiredOn': json['expiredOn'] == null ? undefined : json['expiredOn'],
        'currentSubmissionStatus': json['currentSubmissionStatus'] == null ? undefined : DataaccessSubmissionStatusFromJSON(json['currentSubmissionStatus']),
    };
}
export function ManagedACTAccessRequirementStatusToJSON(json) {
    return ManagedACTAccessRequirementStatusToJSONTyped(json, false);
}
export function ManagedACTAccessRequirementStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'accessRequirementId': value['accessRequirementId'],
        'concreteType': value['concreteType'],
        'isApproved': value['isApproved'],
        'expiredOn': value['expiredOn'],
        'currentSubmissionStatus': DataaccessSubmissionStatusToJSON(value['currentSubmissionStatus']),
    };
}
//# sourceMappingURL=ManagedACTAccessRequirementStatus.js.map