Returns a Program deserialized from the given JSON string.
(program_json: bytes)
| 87 | |
| 88 | |
| 89 | def _json_to_program(program_json: bytes) -> Program: |
| 90 | """Returns a Program deserialized from the given JSON string.""" |
| 91 | # construct program class recursively from dict |
| 92 | return _json_to_dataclass(json.loads(program_json), cls=Program) |
| 93 | |
| 94 | |
| 95 | def _insert_flatbuffer_header( |