Map input to Key Value Pair

How do I map the vals to show be in key value pair

public getSearchHelpResult(evt: Event): void {
const vals = (evt as CustomEvent).detail;

this.showContinue = false;
[this.isGridVisible, this.showNoDataAlert] = [false, false];
this.gridColumns = [];
this.gridPayload.searchfilters = [];
this.gridPayload.appid = this.appId;
this.gridPayload.searchfield = vals.id;
this.gridPayload.searchfilters.push(vals);
console.log(vals)

right now the vals come as [{“ONE”:”9999″}] to look like this [{“id”:”ONE”,”value”:”9999″}]

I tried vals.map(val: {[key: string]: string}) => {
return {id: val.key, value: val.string}} but it didn’t work to get expected output.