2022-02-08 18:12:23 +00:00
|
|
|
import ApplicationSerializer from '../application';
|
|
|
|
|
|
|
|
export default ApplicationSerializer.extend({
|
2022-05-11 17:26:20 +00:00
|
|
|
normalizeItems(payload) {
|
|
|
|
if (payload.data.keys && Array.isArray(payload.data.keys)) {
|
|
|
|
return payload.data.keys.map((key) => {
|
|
|
|
let model = payload.data.key_info[key];
|
|
|
|
model.id = key;
|
|
|
|
return model;
|
|
|
|
});
|
|
|
|
}
|
2022-02-08 18:12:23 +00:00
|
|
|
},
|
|
|
|
});
|