I have a model...
export class myModel{
PropertyA: string;
PropertyB: number;
PropertyC: string;
PropertyD: number;
}
The data retrieved consists of...
this.store.select(myDataStoreName)
.subscribe(data=> {
}
This is how the returned data appears...
"0: dataArray
PropertyC: SomeText
PropertyD: 33"
What is the best way to automatically assign this returned data to a new object that follows the structure defined in the model?
My goal is to generate a new object after receiving the data and then update specific values based on the incoming data without manual intervention.