"use strict";
/**
 * Fireblocks API
 * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain.  - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
 *
 * The version of the OpenAPI document: 1.6.2
 * Contact: developers@fireblocks.com
 *
 * 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.convertToFireblocksResponse = exports.FireblocksResponse = void 0;
var FireblocksResponse = /** @class */ (function () {
    function FireblocksResponse(data, statusCode, headers) {
        this.data = data;
        this.statusCode = statusCode;
        this.headers = headers;
    }
    return FireblocksResponse;
}());
exports.FireblocksResponse = FireblocksResponse;
function copyHeaders(response) {
    var headersJSON = {};
    for (var _i = 0, _a = Object.entries(response.headers); _i < _a.length; _i++) {
        var _b = _a[_i], key = _b[0], value = _b[1];
        if (typeof value === 'string') {
            headersJSON[key] = value;
        }
        else if (Array.isArray(value)) {
            headersJSON[key] = value.join(',');
        }
    }
    return headersJSON;
}
function convertToFireblocksResponse(response) {
    return new FireblocksResponse(response.data, response.status, copyHeaders(response));
}
exports.convertToFireblocksResponse = convertToFireblocksResponse;
//# sourceMappingURL=fireblocksResponse.js.map