/* 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 { SubmissionEligibilityFromJSON, SubmissionEligibilityToJSON, } from './SubmissionEligibility';
import { MemberSubmissionEligibilityFromJSON, MemberSubmissionEligibilityToJSON, } from './MemberSubmissionEligibility';
/**
 * Check if a given object implements the TeamSubmissionEligibility interface.
 */
export function instanceOfTeamSubmissionEligibility(value) {
    return true;
}
export function TeamSubmissionEligibilityFromJSON(json) {
    return TeamSubmissionEligibilityFromJSONTyped(json, false);
}
export function TeamSubmissionEligibilityFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'teamId': json['teamId'] == null ? undefined : json['teamId'],
        'evaluationId': json['evaluationId'] == null ? undefined : json['evaluationId'],
        'teamEligibility': json['teamEligibility'] == null ? undefined : SubmissionEligibilityFromJSON(json['teamEligibility']),
        'membersEligibility': json['membersEligibility'] == null ? undefined : (json['membersEligibility'].map(MemberSubmissionEligibilityFromJSON)),
        'eligibilityStateHash': json['eligibilityStateHash'] == null ? undefined : json['eligibilityStateHash'],
    };
}
export function TeamSubmissionEligibilityToJSON(json) {
    return TeamSubmissionEligibilityToJSONTyped(json, false);
}
export function TeamSubmissionEligibilityToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'teamId': value['teamId'],
        'evaluationId': value['evaluationId'],
        'teamEligibility': SubmissionEligibilityToJSON(value['teamEligibility']),
        'membersEligibility': value['membersEligibility'] == null ? undefined : (value['membersEligibility'].map(MemberSubmissionEligibilityToJSON)),
        'eligibilityStateHash': value['eligibilityStateHash'],
    };
}
//# sourceMappingURL=TeamSubmissionEligibility.js.map