"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.ExperimentStatsDtoToJSON = exports.ExperimentStatsDtoFromJSONTyped = exports.ExperimentStatsDtoFromJSON = exports.instanceOfExperimentStatsDto = void 0;
/**
 * Check if a given object implements the ExperimentStatsDto interface.
 */
function instanceOfExperimentStatsDto(value) {
    let isInstance = true;
    isInstance = isInstance && "totalCost" in value;
    isInstance = isInstance && "avgDuration" in value;
    return isInstance;
}
exports.instanceOfExperimentStatsDto = instanceOfExperimentStatsDto;
function ExperimentStatsDtoFromJSON(json) {
    return ExperimentStatsDtoFromJSONTyped(json, false);
}
exports.ExperimentStatsDtoFromJSON = ExperimentStatsDtoFromJSON;
function ExperimentStatsDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'totalCost': json['totalCost'],
        'avgDuration': json['avgDuration'],
    };
}
exports.ExperimentStatsDtoFromJSONTyped = ExperimentStatsDtoFromJSONTyped;
function ExperimentStatsDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'totalCost': value.totalCost,
        'avgDuration': value.avgDuration,
    };
}
exports.ExperimentStatsDtoToJSON = ExperimentStatsDtoToJSON;
