"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.PaymentGatewayCredentialToJSON = exports.PaymentGatewayCredentialFromJSONTyped = exports.PaymentGatewayCredentialFromJSON = void 0;
const runtime_1 = require("../runtime");
function PaymentGatewayCredentialFromJSON(json) {
    return PaymentGatewayCredentialFromJSONTyped(json, false);
}
exports.PaymentGatewayCredentialFromJSON = PaymentGatewayCredentialFromJSON;
function PaymentGatewayCredentialFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'paymentGateway': !(0, runtime_1.exists)(json, 'payment_gateway') ? undefined : json['payment_gateway'],
        'accountId': json['account_id'],
        'authToken': !(0, runtime_1.exists)(json, 'auth_token') ? undefined : json['auth_token'],
    };
}
exports.PaymentGatewayCredentialFromJSONTyped = PaymentGatewayCredentialFromJSONTyped;
function PaymentGatewayCredentialToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'account_id': value.accountId,
        'auth_token': value.authToken,
    };
}
exports.PaymentGatewayCredentialToJSON = PaymentGatewayCredentialToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5bWVudEdhdGV3YXlDcmVkZW50aWFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL1BheW1lbnRHYXRld2F5Q3JlZGVudGlhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjtBQUNwQjs7Ozs7Ozs7OztHQVVHOzs7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