"use strict";
/* tslint:disable class-name */
Object.defineProperty(exports, "__esModule", { value: true });
const CustomRPCRule_1 = require("../../../../rules/CustomRPCRule");
function wise_rule_custom_rpc_encode(r) {
    const out = {
        rule: "custom_rpc",
        host: r.host,
        port: r.port,
        path: r.path,
        method: r.method,
    };
    return out;
}
exports.wise_rule_custom_rpc_encode = wise_rule_custom_rpc_encode;
function wise_rule_custom_rpc_decode(r) {
    return new CustomRPCRule_1.CustomRPCRule(r.host, r.port, r.path, r.method);
}
exports.wise_rule_custom_rpc_decode = wise_rule_custom_rpc_decode;
//# sourceMappingURL=rule-custom-rpc-schema.js.map