"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExchangeData = void 0;
/**
 * @internal this entity is meant for internal use only
 */
class ExchangeData {
    constructor(json) {
        if (!json.delegator || !json.delegate || !json.exchangeKey || !json.accessControlSecret || !json.sharedSignatureKey || !json.sharedSignature)
            throw new Error(`Exchange data json is missing required properties.\n${JSON.stringify(json, undefined, 2)}`);
        Object.assign(this, json);
    }
}
exports.ExchangeData = ExchangeData;
//# sourceMappingURL=ExchangeData.js.map