"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.BankAccountInfoToJSON = exports.BankAccountInfoFromJSONTyped = exports.BankAccountInfoFromJSON = void 0;
const runtime_1 = require("../runtime");
function BankAccountInfoFromJSON(json) {
    return BankAccountInfoFromJSONTyped(json, false);
}
exports.BankAccountInfoFromJSON = BankAccountInfoFromJSON;
function BankAccountInfoFromJSONTyped(json, ignoreDiscriminator) {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        'last4': !(0, runtime_1.exists)(json, 'last4') ? undefined : json['last4'],
        'bankName': !(0, runtime_1.exists)(json, 'bank_name') ? undefined : json['bank_name'],
        'externalId': !(0, runtime_1.exists)(json, 'external_id') ? undefined : json['external_id'],
        'routingNumber': !(0, runtime_1.exists)(json, 'routing_number') ? undefined : json['routing_number'],
        'accountType': !(0, runtime_1.exists)(json, 'account_type') ? undefined : json['account_type'],
        'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
    };
}
exports.BankAccountInfoFromJSONTyped = BankAccountInfoFromJSONTyped;
function BankAccountInfoToJSON(value) {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        'last4': value.last4,
        'bank_name': value.bankName,
        'external_id': value.externalId,
        'routing_number': value.routingNumber,
        'account_type': value.accountType,
        'country': value.country,
    };
}
exports.BankAccountInfoToJSON = BankAccountInfoToJSON;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFua0FjY291bnRJbmZvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvZGVnZW4vbW9kZWxzL0JhbmtBY2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