"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.CustomerPortalStripeCredentialToJSON = exports.CustomerPortalStripeCredentialFromJSONTyped = exports.CustomerPortalStripeCredentialFromJSON = void 0;
const runtime_1 = require("../runtime");
function CustomerPortalStripeCredentialFromJSON(json) {
    return CustomerPortalStripeCredentialFromJSONTyped(json, false);
}
exports.CustomerPortalStripeCredentialFromJSON = CustomerPortalStripeCredentialFromJSON;
function CustomerPortalStripeCredentialFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'publishableKey': !(0, runtime_1.exists)(json, 'publishable_key') ? undefined : json['publishable_key'],
        'clientSecret': !(0, runtime_1.exists)(json, 'client_secret') ? undefined : json['client_secret'],
        'accountId': !(0, runtime_1.exists)(json, 'account_id') ? undefined : json['account_id'],
    };
}
exports.CustomerPortalStripeCredentialFromJSONTyped = CustomerPortalStripeCredentialFromJSONTyped;
function CustomerPortalStripeCredentialToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'publishable_key': value.publishableKey,
        'client_secret': value.clientSecret,
        'account_id': value.accountId,
    };
}
exports.CustomerPortalStripeCredentialToJSON = CustomerPortalStripeCredentialToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ3VzdG9tZXJQb3J0YWxTdHJpcGVDcmVkZW50aWFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0N1c3RvbWVyUG9ydGFsU3RyaXBlQ3JlZGVudGlhbC50cyJdLCJuY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