import { parse , stringify } from 'flatted' ; export const serialize = value => { return stringify ( value ) ; } ; export const deserialize = value => { return value === 'null' || value === null ? null : parse ( value ) ; } ;