保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 23b60dc1975db38c280d8a123aff97544d1673e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonableValue = void 0;
var json_1 = require("./json");
var JsonableValue = (function () {
    function JsonableValue(value) {
        this.value = value;
    }
    Object.defineProperty(JsonableValue.prototype, "value", {
        get: function () {
            return this._value;
        },
        set: function (value) {
            this._value = value;
            this._serialized = (0, json_1.stringify)(value);
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(JsonableValue.prototype, "serialized", {
        get: function () {
            return this._serialized;
        },
        enumerable: false,
        configurable: true
    });
    JsonableValue.prototype.valueOf = function () {
        return this._value;
    };
    JsonableValue.prototype.toString = function () {
        return this._serialized;
    };
    return JsonableValue;
}());
exports.JsonableValue = JsonableValue;