"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.UpdateFineTuneInputToJSON = exports.UpdateFineTuneInputFromJSONTyped = exports.UpdateFineTuneInputFromJSON = exports.instanceOfUpdateFineTuneInput = void 0;
/**
 * Check if a given object implements the UpdateFineTuneInput interface.
 */
function instanceOfUpdateFineTuneInput(value) {
    let isInstance = true;
    isInstance = isInstance && "duration" in value;
    isInstance = isInstance && "endedAt" in value;
    return isInstance;
}
exports.instanceOfUpdateFineTuneInput = instanceOfUpdateFineTuneInput;
function UpdateFineTuneInputFromJSON(json) {
    return UpdateFineTuneInputFromJSONTyped(json, false);
}
exports.UpdateFineTuneInputFromJSON = UpdateFineTuneInputFromJSON;
function UpdateFineTuneInputFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'duration': json['duration'],
        'endedAt': json['endedAt'],
    };
}
exports.UpdateFineTuneInputFromJSONTyped = UpdateFineTuneInputFromJSONTyped;
function UpdateFineTuneInputToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'duration': value.duration,
        'endedAt': value.endedAt,
    };
}
exports.UpdateFineTuneInputToJSON = UpdateFineTuneInputToJSON;
