/* 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 ExperimentStatsDto
 */
export interface ExperimentStatsDto {
    /**
     * 
     * @type {number}
     * @memberof ExperimentStatsDto
     */
    totalCost: number | null;
    /**
     * 
     * @type {number}
     * @memberof ExperimentStatsDto
     */
    avgDuration: number | null;
}

/**
 * Check if a given object implements the ExperimentStatsDto interface.
 */
export function instanceOfExperimentStatsDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "totalCost" in value;
    isInstance = isInstance && "avgDuration" in value;

    return isInstance;
}

export function ExperimentStatsDtoFromJSON(json: any): ExperimentStatsDto {
    return ExperimentStatsDtoFromJSONTyped(json, false);
}

export function ExperimentStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExperimentStatsDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'totalCost': json['totalCost'],
        'avgDuration': json['avgDuration'],
    };
}

export function ExperimentStatsDtoToJSON(value?: ExperimentStatsDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'totalCost': value.totalCost,
        'avgDuration': value.avgDuration,
    };
}

