I need some help with parsing Json data in Angular TypeScript. The data is structured as follows:
https://i.sstatic.net/H7s8q.png
When calling a REST API, I want to convert a Java class object into an array of model classes. How can this be achieved?
"gameId": 66,
"kashScore": 0,
"samScore": 1,
"wonBy": "Sam",
"createUserId": 0,
"lastModifiedUserId": 0,
"creationDate": "2020-04-20T14:05:44.263+0000",
"lastModifiedDateTime": "2020-04-20T14:05:44.264+0000",
"sessionId": 1000,
"count": null
Here is my model class structure:
https://i.sstatic.net/AqfVh.png
Additionally, there is information for tracking pagination:
https://i.sstatic.net/QOtZP.png
Although I attempted a solution, it resulted in an error: