import { WorkerInstance } from './worker-instance' ; ignore export const workerFromJson = ( workerJson ) : WorkerInstance => { return { id : workerJson . id , createdAt : new Date ( workerJson . createdAt ) , } ; } ;