Converts js and json into useful typescript classes