"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * Octane API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.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.CustomerMeasurementMappingToJSON = exports.CustomerMeasurementMappingFromJSONTyped = exports.CustomerMeasurementMappingFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerMeasurementMappingFromJSON(json) {
    return CustomerMeasurementMappingFromJSONTyped(json, false);
}
exports.CustomerMeasurementMappingFromJSON = CustomerMeasurementMappingFromJSON;
function CustomerMeasurementMappingFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'label': json['label'],
        'valueRegex': !(0, runtime_1.exists)(json, 'value_regex') ? undefined : json['value_regex'],
    };
}
exports.CustomerMeasurementMappingFromJSONTyped = CustomerMeasurementMappingFromJSONTyped;
function CustomerMeasurementMappingToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'label': value.label,
        'value_regex': value.valueRegex,
    };
}
exports.CustomerMeasurementMappingToJSON = CustomerMeasurementMappingToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJNZWFzdXJlbWVudE1hcHBpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29kZWdlbi9tb2RlbHMvQ3VzdG9tZXJNZWFzdXJlbWVudE1hcHBpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLG9CQUFvQjtBQUNwQixvQkFBb0I7QUFDcEI7Ozs7Ozs7Ozs7R0FVRzs7O0FBRUgsd0NBQStDO0FBcUIvQyxTQUFnQixrQ0FBa0MsQ0FBQyx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