"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.CreateDatasetInputToJSON = exports.CreateDatasetInputFromJSONTyped = exports.CreateDatasetInputFromJSON = exports.instanceOfCreateDatasetInput = void 0;
const runtime_1 = require("../runtime");
/**
 * Check if a given object implements the CreateDatasetInput interface.
 */
function instanceOfCreateDatasetInput(value) {
    let isInstance = true;
    isInstance = isInstance && "name" in value;
    return isInstance;
}
exports.instanceOfCreateDatasetInput = instanceOfCreateDatasetInput;
function CreateDatasetInputFromJSON(json) {
    return CreateDatasetInputFromJSONTyped(json, false);
}
exports.CreateDatasetInputFromJSON = CreateDatasetInputFromJSON;
function CreateDatasetInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'name': json['name'],
        'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
        'inputSchema': !(0, runtime_1.exists)(json, 'inputSchema') ? undefined : json['inputSchema'],
        'outputSchema': !(0, runtime_1.exists)(json, 'outputSchema') ? undefined : json['outputSchema'],
        'isFineTuning': !(0, runtime_1.exists)(json, 'isFineTuning') ? undefined : json['isFineTuning'],
    };
}
exports.CreateDatasetInputFromJSONTyped = CreateDatasetInputFromJSONTyped;
function CreateDatasetInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'name': value.name,
        'description': value.description,
        'inputSchema': value.inputSchema,
        'outputSchema': value.outputSchema,
        'isFineTuning': value.isFineTuning,
    };
}
exports.CreateDatasetInputToJSON = CreateDatasetInputToJSON;
