Finished the direct approach SerializeTypes class