dto-model-parserdeprecated

DTO-Model Parser is a TypeScript Library that helps performing transformations bidirectionally among objects coming from APIs or backend (JSON/DTOs) and frontend models (TS Classes).

Usage no npm install needed!

<script type="module">
  import dtoModelParser from 'https://cdn.skypack.dev/dto-model-parser';
</script>

README

DTO-Model Parser

DTO-Model Parser is a TypeScript Library that helps performing transformations bidirectionally among objects coming from APIs or backend (JSON/DTOs) and frontend models (TS Classes).


Getting started

Requirements

The package makes use of TypeScript decorators. Please activate them in your tsconfig.json under compilerOptions as follows:

{
  "compilerOptions": {
    [...]
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    [...]
}

Mapping example

// TODO