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) => {
|
2022-11-09 23:15:31 +00:00
|
|
|
const model = payload.data.key_info[key];
|
2022-05-11 17:26:20 +00:00
|
|
|
model.id = key;
|
|
|
|
return model;
|
|
|
|
});
|
|
|
|
}
|
2022-02-08 18:12:23 +00:00
|
|
|
},
|
|
|
|
});
|