MCPcopy Index your code
hub / github.com/DeepL/deepl-python / from_json

Method from_json

deepl/api_data.py:545–559  ·  view source on GitHub ↗

Create MultilingualGlossaryInfo from the given API JSON object.

(json)

Source from the content-addressed store, hash-verified

543
544 @staticmethod
545 def from_json(json) -> "MultilingualGlossaryInfo":
546 """Create MultilingualGlossaryInfo from the given API JSON object."""
547 return MultilingualGlossaryInfo(
548 json["glossary_id"],
549 json["name"],
550 parse_timestamp(json["creation_time"]),
551 list(
552 map(
553 lambda entry: MultilingualGlossaryDictionaryInfo.from_json(
554 entry
555 ),
556 json["dictionaries"],
557 )
558 ),
559 )
560
561 @staticmethod
562 def to_json(self) -> dict:

Callers

nothing calls this directly

Calls 3

parse_timestampFunction · 0.90
from_jsonMethod · 0.45

Tested by

no test coverage detected