"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.UpdateSelfServeSettingsArgsToJSON = exports.UpdateSelfServeSettingsArgsFromJSONTyped = exports.UpdateSelfServeSettingsArgsFromJSON = void 0;
const runtime_1 = require("../runtime");
function UpdateSelfServeSettingsArgsFromJSON(json) {
    return UpdateSelfServeSettingsArgsFromJSONTyped(json, false);
}
exports.UpdateSelfServeSettingsArgsFromJSON = UpdateSelfServeSettingsArgsFromJSON;
function UpdateSelfServeSettingsArgsFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
        'enableAddressFields': !(0, runtime_1.exists)(json, 'enable_address_fields') ? undefined : json['enable_address_fields'],
        'switchPricePlans': !(0, runtime_1.exists)(json, 'switch_price_plans') ? undefined : json['switch_price_plans'],
        'pricePerCreditCents': !(0, runtime_1.exists)(json, 'price_per_credit_cents') ? undefined : json['price_per_credit_cents'],
        'creditsExpirationLength': !(0, runtime_1.exists)(json, 'credits_expiration_length') ? undefined : json['credits_expiration_length'],
        'purchaseCredits': !(0, runtime_1.exists)(json, 'purchase_credits') ? undefined : json['purchase_credits'],
        'customization': !(0, runtime_1.exists)(json, 'customization') ? undefined : json['customization'],
        'creditsExpirationUnit': !(0, runtime_1.exists)(json, 'credits_expiration_unit') ? undefined : json['credits_expiration_unit'],
    };
}
exports.UpdateSelfServeSettingsArgsFromJSONTyped = UpdateSelfServeSettingsArgsFromJSONTyped;
function UpdateSelfServeSettingsArgsToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'enabled': value.enabled,
        'enable_address_fields': value.enableAddressFields,
        'switch_price_plans': value.switchPricePlans,
        'price_per_credit_cents': value.pricePerCreditCents,
        'credits_expiration_length': value.creditsExpirationLength,
        'purchase_credits': value.purchaseCredits,
        'customization': value.customization,
        'credits_expiration_unit': value.creditsExpirationUnit,
    };
}
exports.UpdateSelfServeSettingsArgsToJSON = UpdateSelfServeSettingsArgsToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXBkYXRlU2VsZlNlcnZlU2V0dGluZ3NBcmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL1VwZGF0ZVNlbGZTZXJ2ZVNldHRpbmdzQXJncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7QUFFSCx3Q0FBK0M7QUF5RC9DLFNBQWdCLG1DQUFtQyxDQUFDLElBQVM7SUFDekQsT0FBTyx3Q0FBd0MsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUM7QUFDakUsQ0FBQztBQUZELGtGQUVDO0FBRUQsU0FBZ0Isd0NBQXdDLENBQUMsSUFBUyxFQUFFLG1CQUE0QjtJQUM1RixJQUFJLENBQUMsSUFBSSxLQUFLLFNBQVMsQ0FBQyxJQUFJLENBQUMsSUFBSSxLQUFLLElBQUksQ0FBQyxFQUFFO1FBQ3pDLE9BQU8sSUFBSSxDQUFDO0tBQ2Y7SUFDRCxPQUFPO1FBRUgsU0FBUyxFQUFFLENBQUMsSUFBQSxnQkFBTSxFQUFDLElBQUksRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDO1FBQ2pFLHFCQUFxQixFQUFFLENBQU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