FIX: Converting hash objects to structs

Ensure that the hash key is a valid struct field name