"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.AddToDatasetInputToJSON = exports.AddToDatasetInputFromJSONTyped = exports.AddToDatasetInputFromJSON = exports.instanceOfAddToDatasetInput = exports.AddToDatasetInputSplitEnum = exports.AddToDatasetInputSourceEnum = void 0;
const runtime_1 = require("../runtime");
/**
 * @export
 */
exports.AddToDatasetInputSourceEnum = {
    Trace: 'TRACE',
    Log: 'LOG',
    Api: 'API'
};
/**
 * @export
 */
exports.AddToDatasetInputSplitEnum = {
    Train: 'TRAIN',
    Test: 'TEST'
};
/**
 * Check if a given object implements the AddToDatasetInput interface.
 */
function instanceOfAddToDatasetInput(value) {
    let isInstance = true;
    isInstance = isInstance && "input" in value;
    isInstance = isInstance && "expectedOutput" in value;
    isInstance = isInstance && "source" in value;
    isInstance = isInstance && "sourceId" in value;
    return isInstance;
}
exports.instanceOfAddToDatasetInput = instanceOfAddToDatasetInput;
function AddToDatasetInputFromJSON(json) {
    return AddToDatasetInputFromJSONTyped(json, false);
}
exports.AddToDatasetInputFromJSON = AddToDatasetInputFromJSON;
function AddToDatasetInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'input': json['input'],
        'expectedOutput': json['expectedOutput'],
        'source': json['source'],
        'sourceId': json['sourceId'],
        'split': !(0, runtime_1.exists)(json, 'split') ? undefined : json['split'],
        'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
    };
}
exports.AddToDatasetInputFromJSONTyped = AddToDatasetInputFromJSONTyped;
function AddToDatasetInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'input': value.input,
        'expectedOutput': value.expectedOutput,
        'source': value.source,
        'sourceId': value.sourceId,
        'split': value.split,
        'metadata': value.metadata,
    };
}
exports.AddToDatasetInputToJSON = AddToDatasetInputToJSON;
