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

Method from_json

scratchattach/editor/backpack_json.py:32–35  ·  view source on GitHub ↗
(data: dict[str, str])

Source from the content-addressed store, hash-verified

30
31 @staticmethod
32 def from_json(data: dict[str, str]) -> field.Field:
33 # We can very simply convert it to the regular format
34 data = [data.get("value"), data.get("id")]
35 return field.Field.from_json(data)
36
37
38class BpInput(inputs.Input):

Callers 2

from_jsonMethod · 0.45
load_scriptFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected