How to use the class-transformer.plainToClass.bind function in class-transformer

To help you get started, we’ve selected a few class-transformer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hobbit-project / platform / hobbit-gui / gui-client / src / app / backend.service.ts View on Github external
queryAnalysisResults(benchmarkId: string): Observable {
    return this.http.get(`BACKEND/rest/analysis/${encodeURIComponent(benchmarkId)}`).map(plainToClass.bind(null, AnalysisResultset));
  }