"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.CustomerFeatureToJSON = exports.CustomerFeatureFromJSONTyped = exports.CustomerFeatureFromJSON = void 0;
const runtime_1 = require("../runtime");
const CustomerLabelLimit_1 = require("./CustomerLabelLimit");
function CustomerFeatureFromJSON(json) {
    return CustomerFeatureFromJSONTyped(json, false);
}
exports.CustomerFeatureFromJSON = CustomerFeatureFromJSON;
function CustomerFeatureFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
        'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
        'labelLimits': !(0, runtime_1.exists)(json, 'label_limits') ? undefined : (json['label_limits'].map(CustomerLabelLimit_1.CustomerLabelLimitFromJSON)),
        'featureName': !(0, runtime_1.exists)(json, 'feature_name') ? undefined : json['feature_name'],
        'limit': !(0, runtime_1.exists)(json, 'limit') ? undefined : json['limit'],
    };
}
exports.CustomerFeatureFromJSONTyped = CustomerFeatureFromJSONTyped;
function CustomerFeatureToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'enabled': value.enabled,
        'quantity': value.quantity,
        'label_limits': value.labelLimits === undefined ? undefined : (value.labelLimits.map(CustomerLabelLimit_1.CustomerLabelLimitToJSON)),
        'feature_name': value.featureName,
        'limit': value.limit,
    };
}
exports.CustomerFeatureToJSON = CustomerFeatureToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJGZWF0dXJlLmpzIiwic291cmNlUm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