Вы можете использовать map
с расширенным синтаксисом ...
.
const data = [{Id: 'Number', Attributes: {Name: 'String', Age: 'String', Height: 'String'}}]
const res = data.map(({Attributes, ...rest}) => ({...rest, ...Attributes}))
console.log(res)
Для преобразования типов данных вы можете использовать некоторую вложенную деструктуризацию.
const data = [{Id: 'Number', Attributes: {Name: 'String', Age: '20', Height: '123'}}]
const res = data.map(({Attributes: {Age, Height, ...attr}, ...rest}) => ({
...rest,
...attr,
Age: +Age,
Height: +Height
}))
console.log(res)