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

Method __from_json__

projects/Python/proto/proto.py:1194–1200  ·  view source on GitHub ↗
(fields)

Source from the content-addressed store, hash-verified

1192
1193 @staticmethod
1194 def __from_json__(fields):
1195 if fields is None:
1196 return None
1197 return Balance(
1198 None if "currency" not in fields else fields["currency"],
1199 None if "amount" not in fields else fields["amount"],
1200 )
1201
1202 # Get the FBE type
1203 @property

Callers

nothing calls this directly

Calls 1

BalanceClass · 0.70

Tested by

no test coverage detected