I'd rename this to `cloneViaSerializing`. Also add an explicit return type to the function (not just `= { ...`, but `: T = { ...`).