2020-09-11 17:29:20 +00:00
|
|
|
import ApplicationSerializer from '../application';
|
2020-09-17 19:08:06 +00:00
|
|
|
|
2020-09-11 17:29:20 +00:00
|
|
|
export default ApplicationSerializer.extend({
|
|
|
|
extractLazyPaginatedData(payload) {
|
2022-11-09 23:15:31 +00:00
|
|
|
return payload.data.keys.map((key) => {
|
|
|
|
const model = {
|
2020-09-11 17:29:20 +00:00
|
|
|
id: key,
|
|
|
|
};
|
|
|
|
if (payload.backend) {
|
|
|
|
model.backend = payload.backend;
|
|
|
|
}
|
|
|
|
return model;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|