/**
 *   Generated file. Do not edit
 */
import "./converter-stream-extension";
import { TapStreamReader } from "@iotize/tap/client/impl";
import { TapStreamWriter } from "@iotize/tap/client/impl";
var TargetComStatsConverter = /** @class */ (function () {
    function TargetComStatsConverter() {
    }
    TargetComStatsConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTargetComStats(model);
        return stream.toBytes;
    };
    TargetComStatsConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTargetComStats();
    };
    return TargetComStatsConverter;
}());
export { TargetComStatsConverter };
var TargetSerialModbusProtocolConfigurationConverter = /** @class */ (function () {
    function TargetSerialModbusProtocolConfigurationConverter() {
    }
    TargetSerialModbusProtocolConfigurationConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTargetSerialModbusProtocolConfiguration(model);
        return stream.toBytes;
    };
    TargetSerialModbusProtocolConfigurationConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTargetSerialModbusProtocolConfiguration();
    };
    return TargetSerialModbusProtocolConfigurationConverter;
}());
export { TargetSerialModbusProtocolConfigurationConverter };
var TargetS3PProtocolConfigurationConverter = /** @class */ (function () {
    function TargetS3PProtocolConfigurationConverter() {
    }
    TargetS3PProtocolConfigurationConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeTargetS3PProtocolConfiguration(model);
        return stream.toBytes;
    };
    TargetS3PProtocolConfigurationConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readTargetS3PProtocolConfiguration();
    };
    return TargetS3PProtocolConfigurationConverter;
}());
export { TargetS3PProtocolConfigurationConverter };
var ModbusWriteOptionsConverter = /** @class */ (function () {
    function ModbusWriteOptionsConverter() {
    }
    ModbusWriteOptionsConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeModbusWriteOptions(model);
        return stream.toBytes;
    };
    ModbusWriteOptionsConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readModbusWriteOptions();
    };
    return ModbusWriteOptionsConverter;
}());
export { ModbusWriteOptionsConverter };
var ModbusOptionsConverter = /** @class */ (function () {
    function ModbusOptionsConverter() {
    }
    ModbusOptionsConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeModbusOptions(model);
        return stream.toBytes;
    };
    ModbusOptionsConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readModbusOptions();
    };
    return ModbusOptionsConverter;
}());
export { ModbusOptionsConverter };
var MemoryInfoConverter = /** @class */ (function () {
    function MemoryInfoConverter() {
    }
    MemoryInfoConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeMemoryInfo(model);
        return stream.toBytes;
    };
    MemoryInfoConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readMemoryInfo();
    };
    return MemoryInfoConverter;
}());
export { MemoryInfoConverter };
var MemoryWriteInfoConverter = /** @class */ (function () {
    function MemoryWriteInfoConverter() {
    }
    MemoryWriteInfoConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeMemoryWriteInfo(model);
        return stream.toBytes;
    };
    MemoryWriteInfoConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readMemoryWriteInfo();
    };
    return MemoryWriteInfoConverter;
}());
export { MemoryWriteInfoConverter };
var SerialSettingsConverter = /** @class */ (function () {
    function SerialSettingsConverter() {
    }
    SerialSettingsConverter.prototype.encode = function (model, stream) {
        if (stream === void 0) { stream = new TapStreamWriter(); }
        stream.writeSerialSettings(model);
        return stream.toBytes;
    };
    SerialSettingsConverter.prototype.decode = function (data) {
        var stream = data instanceof TapStreamReader ? data : TapStreamReader.create(data);
        return stream.readSerialSettings();
    };
    return SerialSettingsConverter;
}());
export { SerialSettingsConverter };
//# sourceMappingURL=data:application/json;base64, 