Here are the specifications of the tools I am currently using:
Angular CLI: 10.0.6
Node: 12.18.2
Operating System: win32 x6
Angular Version: 10.0.10
My goal is to retrieve selected rows from ag-grid using a specific method.
When I retrieve the row, it looks like this:
https://i.sstatic.net/GdsMd.png
This row contains various data points, and I have a class named Summary with 22 attributes that correspond to each element in this array.
For example:
export class Summary {
constructor(
public date: Date,
public name: string,
public myNum: string,
public entity: string,
// other attributes
) {
}
}
Essentially, the array row and the Summary object have the same attributes.
I need to convert the array row into a Summary object so that I can send it as an HTTP request (the Rest API accepts a List as a request object).
Is there a specific way to achieve this?