"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.ExperimentDtoToJSON = exports.ExperimentDtoFromJSONTyped = exports.ExperimentDtoFromJSON = exports.instanceOfExperimentDto = void 0;
const runtime_1 = require("../runtime");
/**
 * Check if a given object implements the ExperimentDto interface.
 */
function instanceOfExperimentDto(value) {
    let isInstance = true;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "datasetId" in value;
    isInstance = isInstance && "createdAt" in value;
    return isInstance;
}
exports.instanceOfExperimentDto = instanceOfExperimentDto;
function ExperimentDtoFromJSON(json) {
    return ExperimentDtoFromJSONTyped(json, false);
}
exports.ExperimentDtoFromJSON = ExperimentDtoFromJSON;
function ExperimentDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'id': json['id'],
        'datasetId': json['datasetId'],
        'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'createdAt': json['createdAt'],
    };
}
exports.ExperimentDtoFromJSONTyped = ExperimentDtoFromJSONTyped;
function ExperimentDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'id': value.id,
        'datasetId': value.datasetId,
        'name': value.name,
        'description': value.description,
        'createdAt': value.createdAt,
    };
}
exports.ExperimentDtoToJSON = ExperimentDtoToJSON;
