/* 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 { MemberSubmissionEligibilityFromJSONTyped, MemberSubmissionEligibilityToJSON, } from './MemberSubmissionEligibility';
import { SubmissionEligibilityFromJSONTyped, SubmissionEligibilityToJSON, } from './SubmissionEligibility';
export function SubmissionEligibilityInterfaceFromJSON(json) {
    return SubmissionEligibilityInterfaceFromJSONTyped(json, false);
}
export function SubmissionEligibilityInterfaceFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.evaluation.model.MemberSubmissionEligibility':
            return Object.assign({}, MemberSubmissionEligibilityFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.evaluation.model.MemberSubmissionEligibility' });
        case 'org.sagebionetworks.evaluation.model.SubmissionEligibility':
            return Object.assign({}, SubmissionEligibilityFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.evaluation.model.SubmissionEligibility' });
        default:
            return json;
    }
}
export function SubmissionEligibilityInterfaceToJSON(json) {
    return SubmissionEligibilityInterfaceToJSONTyped(json, false);
}
export function SubmissionEligibilityInterfaceToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.evaluation.model.MemberSubmissionEligibility':
            return Object.assign({}, MemberSubmissionEligibilityToJSON(value), { concreteType: 'org.sagebionetworks.evaluation.model.MemberSubmissionEligibility' });
        case 'org.sagebionetworks.evaluation.model.SubmissionEligibility':
            return Object.assign({}, SubmissionEligibilityToJSON(value), { concreteType: 'org.sagebionetworks.evaluation.model.SubmissionEligibility' });
        default:
            return value;
    }
}
//# sourceMappingURL=SubmissionEligibilityInterface.js.map