github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/serializers/reschedule-event.js (about) 1 import ApplicationSerializer from './application'; 2 3 import classic from 'ember-classic-decorator'; 4 5 @classic 6 export default class RescheduleEvent extends ApplicationSerializer { 7 separateNanos = ['Time']; 8 9 normalize(typeHash, hash) { 10 hash.PreviousAllocationId = hash.PrevAllocID ? hash.PrevAllocID : null; 11 hash.PreviousNodeId = hash.PrevNodeID ? hash.PrevNodeID : null; 12 13 return super.normalize(typeHash, hash); 14 } 15 }