Map json-string from HttpClient-Response to typescript Enum
Let's assume you make a request in Angular via HttpClient to a BackendApi that answers you with the following JSON: [{ "firstname": "Peter", "lastname": "Parker", "job": "Superhero" }] You would then like to map this JSON to a suitable Typescript do...
Mar 30, 20231 min read642
