/* 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.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface UpdateFineTuneInput
 */
export interface UpdateFineTuneInput {
    /**
     * 
     * @type {number}
     * @memberof UpdateFineTuneInput
     */
    duration: number;
    /**
     * 
     * @type {string}
     * @memberof UpdateFineTuneInput
     */
    endedAt: string;
}

/**
 * Check if a given object implements the UpdateFineTuneInput interface.
 */
export function instanceOfUpdateFineTuneInput(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "duration" in value;
    isInstance = isInstance && "endedAt" in value;

    return isInstance;
}

export function UpdateFineTuneInputFromJSON(json: any): UpdateFineTuneInput {
    return UpdateFineTuneInputFromJSONTyped(json, false);
}

export function UpdateFineTuneInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFineTuneInput {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'duration': json['duration'],
        'endedAt': json['endedAt'],
    };
}

export function UpdateFineTuneInputToJSON(value?: UpdateFineTuneInput | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'duration': value.duration,
        'endedAt': value.endedAt,
    };
}

