MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / __from_json__

Method __from_json__

projects/Python/proto/test.py:12337–12345  ·  view source on GitHub ↗
(fields)

Source from the content-addressed store, hash-verified

12335
12336 @staticmethod
12337 def __from_json__(fields):
12338 if fields is None:
12339 return None
12340 return StructSet(
12341 None if "f1" not in fields else {value for value in fields["f1"]},
12342 None if "f2" not in fields else {EnumSimple.__from_json__(value) for value in fields["f2"]},
12343 None if "f3" not in fields else {FlagsSimple.__from_json__(value) for value in fields["f3"]},
12344 None if "f4" not in fields else {StructSimple.__from_json__(value) for value in fields["f4"]},
12345 )
12346
12347 # Get the FBE type
12348 @property

Callers

nothing calls this directly

Calls 2

StructSetClass · 0.70
__from_json__Method · 0.45

Tested by

no test coverage detected