const serialize = (value: unknown) => { return JSON.parse(JSON.stringify(value)) } const deserialize = (value: Record, constructor: any): any => { return constructor(value) } export { serialize, deserialize }