"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.FullDatapointRunDtoToJSON = exports.FullDatapointRunDtoFromJSONTyped = exports.FullDatapointRunDtoFromJSON = exports.instanceOfFullDatapointRunDto = void 0;
const DatapointDto_1 = require("./DatapointDto");
/**
 * Check if a given object implements the FullDatapointRunDto interface.
 */
function instanceOfFullDatapointRunDto(value) {
    let isInstance = true;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "output" in value;
    isInstance = isInstance && "evaluation" in value;
    isInstance = isInstance && "experimentId" in value;
    isInstance = isInstance && "datapointId" in value;
    isInstance = isInstance && "createdAt" in value;
    isInstance = isInstance && "datapoint" in value;
    return isInstance;
}
exports.instanceOfFullDatapointRunDto = instanceOfFullDatapointRunDto;
function FullDatapointRunDtoFromJSON(json) {
    return FullDatapointRunDtoFromJSONTyped(json, false);
}
exports.FullDatapointRunDtoFromJSON = FullDatapointRunDtoFromJSON;
function FullDatapointRunDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'id': json['id'],
        'output': json['output'],
        'evaluation': json['evaluation'],
        'experimentId': json['experimentId'],
        'datapointId': json['datapointId'],
        'createdAt': json['createdAt'],
        'datapoint': (0, DatapointDto_1.DatapointDtoFromJSON)(json['datapoint']),
    };
}
exports.FullDatapointRunDtoFromJSONTyped = FullDatapointRunDtoFromJSONTyped;
function FullDatapointRunDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'id': value.id,
        'output': value.output,
        'evaluation': value.evaluation,
        'experimentId': value.experimentId,
        'datapointId': value.datapointId,
        'createdAt': value.createdAt,
        'datapoint': (0, DatapointDto_1.DatapointDtoToJSON)(value.datapoint),
    };
}
exports.FullDatapointRunDtoToJSON = FullDatapointRunDtoToJSON;
