"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const WeightRule_1 = require("../../../../rules/WeightRule");
function wise_rule_weight_encode(rule) {
    const out = {
        rule: "weight",
        min: rule.min,
        max: rule.max
    };
    return out;
}
exports.wise_rule_weight_encode = wise_rule_weight_encode;
function wise_rule_weight_decode(r) {
    return new WeightRule_1.WeightRule(r.min, r.max);
}
exports.wise_rule_weight_decode = wise_rule_weight_decode;
//# sourceMappingURL=rule-weight-schema.js.map