@chartshq/datamodel
Version:
An environment with `node`, `rustup` and `wasm-pack` set up.
1 lines • 371 B
JavaScript
import{DataFormat}from"../../contracts/data";import FlatJSON from"../dataParsers/flat-json";var JSONConverter=function(){function t(){this._type=DataFormat.FLAT_JSON}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),t.prototype.convert=function(t,r){return FlatJSON(t,r)},t}();export default JSONConverter;