MCPcopy Create free account
hub / github.com/STIXProject/python-stix / from_dict

Method from_dict

stix/common/profiles.py:43–49  ·  view source on GitHub ↗
(cls, cls_dict=None)

Source from the content-addressed store, hash-verified

41
42 @classmethod
43 def from_dict(cls, cls_dict=None):
44 if not cls_dict:
45 return None
46
47 obj = cls()
48 obj.profile = [x for x in cls_dict]
49 return obj

Callers 15

from_listMethod · 0.45
object_from_dictMethod · 0.45
test_negateMethod · 0.45
round_trip_dictFunction · 0.45
round_tripFunction · 0.45
test_round_trip_fullMethod · 0.45
test_round_trip_rtMethod · 0.45
test_equalMethod · 0.45
test_strip_cdataMethod · 0.45

Calls

no outgoing calls

Tested by 11

test_negateMethod · 0.36
test_round_trip_fullMethod · 0.36
test_round_trip_rtMethod · 0.36
test_equalMethod · 0.36
test_strip_cdataMethod · 0.36
test_etree_dictMethod · 0.36
test_etree_dictMethod · 0.36