automatically generate Item objects from hashes