"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.PaginatedExperimentsDtoToJSON = exports.PaginatedExperimentsDtoFromJSONTyped = exports.PaginatedExperimentsDtoFromJSON = exports.instanceOfPaginatedExperimentsDto = void 0;
const ExperimentDto_1 = require("./ExperimentDto");
/**
 * Check if a given object implements the PaginatedExperimentsDto interface.
 */
function instanceOfPaginatedExperimentsDto(value) {
    let isInstance = true;
    isInstance = isInstance && "experiments" in value;
    isInstance = isInstance && "totalCount" in value;
    return isInstance;
}
exports.instanceOfPaginatedExperimentsDto = instanceOfPaginatedExperimentsDto;
function PaginatedExperimentsDtoFromJSON(json) {
    return PaginatedExperimentsDtoFromJSONTyped(json, false);
}
exports.PaginatedExperimentsDtoFromJSON = PaginatedExperimentsDtoFromJSON;
function PaginatedExperimentsDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'experiments': (json['experiments'].map(ExperimentDto_1.ExperimentDtoFromJSON)),
        'totalCount': json['totalCount'],
    };
}
exports.PaginatedExperimentsDtoFromJSONTyped = PaginatedExperimentsDtoFromJSONTyped;
function PaginatedExperimentsDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'experiments': (value.experiments.map(ExperimentDto_1.ExperimentDtoToJSON)),
        'totalCount': value.totalCount,
    };
}
exports.PaginatedExperimentsDtoToJSON = PaginatedExperimentsDtoToJSON;
