"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.ExperimentAnalyticsValueDtoToJSON = exports.ExperimentAnalyticsValueDtoFromJSONTyped = exports.ExperimentAnalyticsValueDtoFromJSON = exports.instanceOfExperimentAnalyticsValueDto = void 0;
/**
 * Check if a given object implements the ExperimentAnalyticsValueDto interface.
 */
function instanceOfExperimentAnalyticsValueDto(value) {
    let isInstance = true;
    isInstance = isInstance && "name" in value;
    isInstance = isInstance && "value" in value;
    return isInstance;
}
exports.instanceOfExperimentAnalyticsValueDto = instanceOfExperimentAnalyticsValueDto;
function ExperimentAnalyticsValueDtoFromJSON(json) {
    return ExperimentAnalyticsValueDtoFromJSONTyped(json, false);
}
exports.ExperimentAnalyticsValueDtoFromJSON = ExperimentAnalyticsValueDtoFromJSON;
function ExperimentAnalyticsValueDtoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'name': json['name'],
        'value': json['value'],
    };
}
exports.ExperimentAnalyticsValueDtoFromJSONTyped = ExperimentAnalyticsValueDtoFromJSONTyped;
function ExperimentAnalyticsValueDtoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'name': value.name,
        'value': value.value,
    };
}
exports.ExperimentAnalyticsValueDtoToJSON = ExperimentAnalyticsValueDtoToJSON;
