Equivalent of [JsonPropertyName] from C# in TypeScript
Advertisements I need to deserialize some JSON response to my class defined in Angular. Let’s give example class: export class ChatHubInfo { hubUrl: string = undefined! accessToken: string = undefined! } But the JSON response looks like: { "hub_url": "https://localhost:8080/", "access_token": "v4.public.eY…" } So while deserializing I want to map hub_url to hubUrl and so… Read More Equivalent of [JsonPropertyName] from C# in TypeScript