"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.DatapointDtoToJSON = exports.DatapointDtoFromJSONTyped = exports.DatapointDtoFromJSON = exports.instanceOfDatapointDto = exports.DatapointDtoSplitEnum = exports.DatapointDtoSourceEnum = void 0;
/**
 * @export
 */
exports.DatapointDtoSourceEnum = {
    Trace: 'TRACE',
    Log: 'LOG',
    Api: 'API'
};
/**
 * @export
 */
exports.DatapointDtoSplitEnum = {
    Train: 'TRAIN',
    Test: 'TEST'
};
/**
 * Check if a given object implements the DatapointDto interface.
 */
function instanceOfDatapointDto(value) {
    let isInstance = true;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "input" in value;
    isInstance = isInstance && "expectedOutput" in value;
    isInstance = isInstance && "source" in value;
    isInstance = isInstance && "sourceId" in value;
    isInstance = isInstance && "datasetId" in value;
    isInstance = isInstance && "split" in value;
    isInstance = isInstance && "createdAt" in value;
    isInstance = isInstance && "metadata" in value;
    return isInstance;
}
exports.instanceOfDatapointDto = instanceOfDatapointDto;
function DatapointDtoFromJSON(json) {
    return DatapointDtoFromJSONTyped(json, false);
}
exports.DatapointDtoFromJSON = DatapointDtoFromJSON;
function DatapointDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'id': json['id'],
        'input': json['input'],
        'expectedOutput': json['expectedOutput'],
        'source': json['source'],
        'sourceId': json['sourceId'],
        'datasetId': json['datasetId'],
        'split': json['split'],
        'createdAt': json['createdAt'],
        'metadata': json['metadata'],
    };
}
exports.DatapointDtoFromJSONTyped = DatapointDtoFromJSONTyped;
function DatapointDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'id': value.id,
        'input': value.input,
        'expectedOutput': value.expectedOutput,
        'source': value.source,
        'sourceId': value.sourceId,
        'datasetId': value.datasetId,
        'split': value.split,
        'createdAt': value.createdAt,
        'metadata': value.metadata,
    };
}
exports.DatapointDtoToJSON = DatapointDtoToJSON;
