"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.CustomerPortalMeterLabelsWithDisplayNameToJSON = exports.CustomerPortalMeterLabelsWithDisplayNameFromJSONTyped = exports.CustomerPortalMeterLabelsWithDisplayNameFromJSON = void 0;
const runtime_1 = require("../runtime");
const CustomerPortalLabelDisplayName_1 = require("./CustomerPortalLabelDisplayName");
function CustomerPortalMeterLabelsWithDisplayNameFromJSON(json) {
    return CustomerPortalMeterLabelsWithDisplayNameFromJSONTyped(json, false);
}
exports.CustomerPortalMeterLabelsWithDisplayNameFromJSON = CustomerPortalMeterLabelsWithDisplayNameFromJSON;
function CustomerPortalMeterLabelsWithDisplayNameFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'values': !(0, runtime_1.exists)(json, 'values') ? undefined : (json['values'].map(CustomerPortalLabelDisplayName_1.CustomerPortalLabelDisplayNameFromJSON)),
        'key': !(0, runtime_1.exists)(json, 'key') ? undefined : (0, CustomerPortalLabelDisplayName_1.CustomerPortalLabelDisplayNameFromJSON)(json['key']),
    };
}
exports.CustomerPortalMeterLabelsWithDisplayNameFromJSONTyped = CustomerPortalMeterLabelsWithDisplayNameFromJSONTyped;
function CustomerPortalMeterLabelsWithDisplayNameToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'values': value.values === undefined ? undefined : (value.values.map(CustomerPortalLabelDisplayName_1.CustomerPortalLabelDisplayNameToJSON)),
        'key': (0, CustomerPortalLabelDisplayName_1.CustomerPortalLabelDisplayNameToJSON)(value.key),
    };
}
exports.CustomerPortalMeterLabelsWithDisplayNameToJSON = CustomerPort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