"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.FineTuneWithDatasetDtoToJSON = exports.FineTuneWithDatasetDtoFromJSONTyped = exports.FineTuneWithDatasetDtoFromJSON = exports.instanceOfFineTuneWithDatasetDto = exports.FineTuneWithDatasetDtoStatusEnum = exports.FineTuneWithDatasetDtoProviderEnum = void 0;
const DatasetDto_1 = require("./DatasetDto");
/**
 * @export
 */
exports.FineTuneWithDatasetDtoProviderEnum = {
    Openai: 'OPENAI',
    Cohere: 'COHERE',
    Montelo: 'MONTELO'
};
/**
 * @export
 */
exports.FineTuneWithDatasetDtoStatusEnum = {
    Pending: 'PENDING',
    Running: 'RUNNING',
    Deploying: 'DEPLOYING',
    Completed: 'COMPLETED',
    Failed: 'FAILED',
    Cancelled: 'CANCELLED'
};
/**
 * Check if a given object implements the FineTuneWithDatasetDto interface.
 */
function instanceOfFineTuneWithDatasetDto(value) {
    let isInstance = true;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "provider" in value;
    isInstance = isInstance && "model" in value;
    isInstance = isInstance && "status" in value;
    isInstance = isInstance && "startedAt" in value;
    isInstance = isInstance && "endedAt" in value;
    isInstance = isInstance && "metadata" in value;
    isInstance = isInstance && "datasetId" in value;
    isInstance = isInstance && "dataset" in value;
    return isInstance;
}
exports.instanceOfFineTuneWithDatasetDto = instanceOfFineTuneWithDatasetDto;
function FineTuneWithDatasetDtoFromJSON(json) {
    return FineTuneWithDatasetDtoFromJSONTyped(json, false);
}
exports.FineTuneWithDatasetDtoFromJSON = FineTuneWithDatasetDtoFromJSON;
function FineTuneWithDatasetDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'id': json['id'],
        'provider': json['provider'],
        'model': json['model'],
        'status': json['status'],
        'startedAt': json['startedAt'],
        'endedAt': json['endedAt'],
        'metadata': json['metadata'],
        'datasetId': json['datasetId'],
        'dataset': (0, DatasetDto_1.DatasetDtoFromJSON)(json['dataset']),
    };
}
exports.FineTuneWithDatasetDtoFromJSONTyped = FineTuneWithDatasetDtoFromJSONTyped;
function FineTuneWithDatasetDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'id': value.id,
        'provider': value.provider,
        'model': value.model,
        'status': value.status,
        'startedAt': value.startedAt,
        'endedAt': value.endedAt,
        'metadata': value.metadata,
        'datasetId': value.datasetId,
        'dataset': (0, DatasetDto_1.DatasetDtoToJSON)(value.dataset),
    };
}
exports.FineTuneWithDatasetDtoToJSON = FineTuneWithDatasetDtoToJSON;
