Simple utility for converting between JSON hashes and Ruby struct like classes