An easy way to serialize a function into an object and deserialize the object back into a facunction.