/* 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 { EvaluationRoundLimitFromJSON, EvaluationRoundLimitToJSON, } from './EvaluationRoundLimit';
/**
 * Check if a given object implements the EvaluationRound interface.
 */
export function instanceOfEvaluationRound(value) {
    if (!('evaluationId' in value) || value['evaluationId'] === undefined)
        return false;
    if (!('roundStart' in value) || value['roundStart'] === undefined)
        return false;
    if (!('roundEnd' in value) || value['roundEnd'] === undefined)
        return false;
    return true;
}
export function EvaluationRoundFromJSON(json) {
    return EvaluationRoundFromJSONTyped(json, false);
}
export function EvaluationRoundFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'evaluationId': json['evaluationId'],
        'roundStart': json['roundStart'],
        'roundEnd': json['roundEnd'],
        'limits': json['limits'] == null ? undefined : (json['limits'].map(EvaluationRoundLimitFromJSON)),
    };
}
export function EvaluationRoundToJSON(json) {
    return EvaluationRoundToJSONTyped(json, false);
}
export function EvaluationRoundToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'evaluationId': value['evaluationId'],
        'roundStart': value['roundStart'],
        'roundEnd': value['roundEnd'],
        'limits': value['limits'] == null ? undefined : (value['limits'].map(EvaluationRoundLimitToJSON)),
    };
}
//# sourceMappingURL=EvaluationRound.js.map