I\'m new to generics and trying to create generic methods to "hydrate" plain Javascript objects as class instances and then "dehydrate" them again to their o