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