Example #1
0
 def from_dict(hash_dict):
     if not hash_dict:
         return None
     hash_ = Hash()
     hash_.type_ = HashName.from_dict(hash_dict.get('type'))
     hash_.simple_hash_value = SimpleHashValue.from_dict(
                                     hash_dict.get('simple_hash_value'))
     return hash_