| | |
| | | |
| | | class JsonData { |
| | | /** |
| | | * Creates an instance of JsonData. |
| | | * @param {Buffer | JsonValue} data JSON data |
| | | */ |
| | | constructor(data) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns raw JSON data. |
| | | * @returns {JsonValue | undefined} Raw JSON data |
| | | */ |
| | | get() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Updates the hash with the data contributed by this instance. |
| | | * @param {Hash} hash hash to be updated |
| | | * @returns {void} the updated hash |
| | | */ |
| | |
| | | |
| | | register(JsonData, "webpack/lib/json/JsonData", null, { |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {JsonData} obj JSONData object |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | |
| | | write(obj._buffer); |
| | | }, |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | * @returns {JsonData} deserialized JSON data |
| | | */ |