MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / from_json

Method from_json

scratchattach/editor/meta.py:27–31  ·  view source on GitHub ↗
(data: dict | None)

Source from the content-addressed store, hash-verified

25
26 @staticmethod
27 def from_json(data: dict | None):
28 if data is None:
29 return PlatformMeta()
30 else:
31 return PlatformMeta(data.get("name"), data.get("url"))
32
33
34DEFAULT_VM = "0.1.0"

Callers

nothing calls this directly

Calls 2

PlatformMetaClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected