/* 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 { SubmissionContributorFromJSON, SubmissionContributorToJSON, } from './SubmissionContributor';
/**
 * Check if a given object implements the ModelSubmission interface.
 */
export function instanceOfModelSubmission(value) {
    return true;
}
export function ModelSubmissionFromJSON(json) {
    return ModelSubmissionFromJSONTyped(json, false);
}
export function ModelSubmissionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'submitterAlias': json['submitterAlias'] == null ? undefined : json['submitterAlias'],
        'evaluationId': json['evaluationId'] == null ? undefined : json['evaluationId'],
        'evaluationRoundId': json['evaluationRoundId'] == null ? undefined : json['evaluationRoundId'],
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'entityBundleJSON': json['entityBundleJSON'] == null ? undefined : json['entityBundleJSON'],
        'versionNumber': json['versionNumber'] == null ? undefined : json['versionNumber'],
        'dockerRepositoryName': json['dockerRepositoryName'] == null ? undefined : json['dockerRepositoryName'],
        'dockerDigest': json['dockerDigest'] == null ? undefined : json['dockerDigest'],
        'name': json['name'] == null ? undefined : json['name'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'teamId': json['teamId'] == null ? undefined : json['teamId'],
        'contributors': json['contributors'] == null ? undefined : (new Set(json['contributors'].map(SubmissionContributorFromJSON))),
    };
}
export function ModelSubmissionToJSON(json) {
    return ModelSubmissionToJSONTyped(json, false);
}
export function ModelSubmissionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'userId': value['userId'],
        'submitterAlias': value['submitterAlias'],
        'evaluationId': value['evaluationId'],
        'evaluationRoundId': value['evaluationRoundId'],
        'entityId': value['entityId'],
        'entityBundleJSON': value['entityBundleJSON'],
        'versionNumber': value['versionNumber'],
        'dockerRepositoryName': value['dockerRepositoryName'],
        'dockerDigest': value['dockerDigest'],
        'name': value['name'],
        'createdOn': value['createdOn'],
        'teamId': value['teamId'],
        'contributors': value['contributors'] == null ? undefined : (Array.from(value['contributors']).map(SubmissionContributorToJSON)),
    };
}
//# sourceMappingURL=ModelSubmission.js.map