2019-09-04 14:39:56 +00:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
2020-06-11 21:23:00 +00:00
|
|
|
export default class ServiceSerializer extends ApplicationSerializer {
|
|
|
|
attrs = {
|
2019-09-04 14:39:56 +00:00
|
|
|
connect: 'Connect',
|
2020-06-11 21:23:00 +00:00
|
|
|
};
|
2019-09-04 14:39:56 +00:00
|
|
|
|
|
|
|
normalize(typeHash, hash) {
|
|
|
|
if (!hash.Tags) {
|
|
|
|
hash.Tags = [];
|
|
|
|
}
|
|
|
|
|
2020-06-11 21:23:00 +00:00
|
|
|
return super.normalize(typeHash, hash);
|
|
|
|
}
|
|
|
|
}
|