master
sleepFactory
const sleepFactory = (classInstance) => { const toJSON = (data) => ({ type: getRequestType(data, false), request: { type: 'sleep',