UNPKG

json2typescript

Version:

Provides TypeScript methods to map a JSON object to a JavaScript object on runtime

29 lines 875 B
/** * Internal constants. */ import { PropertyConvertingMode } from "./json-convert-enums"; var Settings = /** @class */ (function () { function Settings() { } Settings.MAPPING_PROPERTY = "__jsonconvert__mapping__"; Settings.MAPPER_PROPERTY = "__jsonconvert__mapper__"; Settings.CLASS_IDENTIFIER = "__jsonconvert__class_identifier__"; return Settings; }()); export { Settings }; ; /** * Internal mapping options for a property. */ var MappingOptions = /** @class */ (function () { function MappingOptions() { this.classPropertyName = ""; this.jsonPropertyName = ""; this.expectedJsonType = undefined; this.convertingMode = PropertyConvertingMode.MAP_NULLABLE; this.customConverter = null; } return MappingOptions; }()); export { MappingOptions }; //# sourceMappingURL=json-convert-options.js.map