"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.CustomerPortalCreditPurchaseToJSON = exports.CustomerPortalCreditPurchaseFromJSONTyped = exports.CustomerPortalCreditPurchaseFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerPortalCreditPurchaseFromJSON(json) {
    return CustomerPortalCreditPurchaseFromJSONTyped(json, false);
}
exports.CustomerPortalCreditPurchaseFromJSON = CustomerPortalCreditPurchaseFromJSON;
function CustomerPortalCreditPurchaseFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'amount': json['amount'],
        'customerName': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
    };
}
exports.CustomerPortalCreditPurchaseFromJSONTyped = CustomerPortalCreditPurchaseFromJSONTyped;
function CustomerPortalCreditPurchaseToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'amount': value.amount,
        'customer_name': value.customerName,
    };
}
exports.CustomerPortalCreditPurchaseToJSON = CustomerPortalCreditPurchaseToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxDcmVkaXRQdXJjaGFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb2RlZ2VuL21vZGVscy9DdXN0b21lclBvcnRhbENyZWRpdFB1cmNoYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9CO0FBQ3BCOzs7Ozs7Ozs7O0dBVUc7Ozt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