How can I iterate over a Object using TypeScript and being able to access key and value?
My json object looks something like this:
{
    "clients": {
        "123abc": {
            "Forename": "Simon",
            "Surname": "Sample"
        },
        "456def": {
            "Forename": "Charlie",
            "Surname": "Brown"
        }
    }
}
The clients object to be filled is made of client models looking like:
export class ClientModel {
    id:string;
    forename:string;
    surname:string;
    constructor(
        private id:string,
        private forename:string,
        private surname:string
    ) {
        this.id = id;
        this.forename = forename;
        this.surname = surname;
    }
}
 
    