"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Montelo
 * Documentation for the Montelo API.
 *
 * The version of the OpenAPI document: 1.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaginatedExperimentWithDatapointRunsDtoToJSON = exports.PaginatedExperimentWithDatapointRunsDtoFromJSONTyped = exports.PaginatedExperimentWithDatapointRunsDtoFromJSON = exports.instanceOfPaginatedExperimentWithDatapointRunsDto = void 0;
const ExperimentStatsDto_1 = require("./ExperimentStatsDto");
const ExperimentWithDatapointRunsDto_1 = require("./ExperimentWithDatapointRunsDto");
/**
 * Check if a given object implements the PaginatedExperimentWithDatapointRunsDto interface.
 */
function instanceOfPaginatedExperimentWithDatapointRunsDto(value) {
    let isInstance = true;
    isInstance = isInstance && "experiment" in value;
    isInstance = isInstance && "totalDatapointRuns" in value;
    isInstance = isInstance && "stats" in value;
    return isInstance;
}
exports.instanceOfPaginatedExperimentWithDatapointRunsDto = instanceOfPaginatedExperimentWithDatapointRunsDto;
function PaginatedExperimentWithDatapointRunsDtoFromJSON(json) {
    return PaginatedExperimentWithDatapointRunsDtoFromJSONTyped(json, false);
}
exports.PaginatedExperimentWithDatapointRunsDtoFromJSON = PaginatedExperimentWithDatapointRunsDtoFromJSON;
function PaginatedExperimentWithDatapointRunsDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'experiment': (0, ExperimentWithDatapointRunsDto_1.ExperimentWithDatapointRunsDtoFromJSON)(json['experiment']),
        'totalDatapointRuns': json['totalDatapointRuns'],
        'stats': (0, ExperimentStatsDto_1.ExperimentStatsDtoFromJSON)(json['stats']),
    };
}
exports.PaginatedExperimentWithDatapointRunsDtoFromJSONTyped = PaginatedExperimentWithDatapointRunsDtoFromJSONTyped;
function PaginatedExperimentWithDatapointRunsDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'experiment': (0, ExperimentWithDatapointRunsDto_1.ExperimentWithDatapointRunsDtoToJSON)(value.experiment),
        'totalDatapointRuns': value.totalDatapointRuns,
        'stats': (0, ExperimentStatsDto_1.ExperimentStatsDtoToJSON)(value.stats),
    };
}
exports.PaginatedExperimentWithDatapointRunsDtoToJSON = PaginatedExperimentWithDatapointRunsDtoToJSON;
