2018-04-25 22:50:15 +00:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class RescheduleEvent extends ApplicationSerializer {
|
2020-08-20 17:14:49 +00:00
|
|
|
separateNanos = ['Time'];
|
2018-04-25 22:50:15 +00:00
|
|
|
|
2020-08-20 17:14:49 +00:00
|
|
|
normalize(typeHash, hash) {
|
2018-05-02 18:21:01 +00:00
|
|
|
hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null;
|
|
|
|
hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null;
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
return super.normalize(typeHash, hash);
|
|
|
|
}
|
|
|
|
}
|