adds function to build Thrift objects from Clojure maps