"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.CustomerSpendThresholdToJSON = exports.CustomerSpendThresholdFromJSONTyped = exports.CustomerSpendThresholdFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerSpendThresholdFromJSON(json) {
    return CustomerSpendThresholdFromJSONTyped(json, false);
}
exports.CustomerSpendThresholdFromJSON = CustomerSpendThresholdFromJSON;
function CustomerSpendThresholdFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'thresholdAmount': !(0, runtime_1.exists)(json, 'threshold_amount') ? undefined : json['threshold_amount'],
    };
}
exports.CustomerSpendThresholdFromJSONTyped = CustomerSpendThresholdFromJSONTyped;
function CustomerSpendThresholdToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'threshold_amount': value.thresholdAmount,
    };
}
exports.CustomerSpendThresholdToJSON = CustomerSpendThresholdToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJTcGVuZFRocmVzaG9sZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9DdXN0b21lclNwZW5kVGhyZXNob2xkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7OztBQUVILHdDQUErQztBQWUvQyxTQUFnQiw4QkFBOEIsQ0FBQyxJQUFTO0lBQ3BELE9BQU8sbUNBQW1DLENB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