MCPcopy
hub / github.com/hacs/integration / to_json

Method to_json

custom_components/hacs/base.py:99–107  ·  view source on GitHub ↗

Return a JSON representation of the data.

(self)

Source from the content-addressed store, hash-verified

97 self.__setattr__(key, data[key])
98
99 def to_json(self):
100 """Return a JSON representation of the data."""
101 return {
102 "repository": self.repository,
103 "reason": self.reason,
104 "link": self.link,
105 "removal_type": self.removal_type,
106 "acknowledged": self.acknowledged,
107 }
108
109
110@dataclass

Callers 4

test_removed_repositoryFunction · 0.95
validate_repositoryFunction · 0.45
test_guardedFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_removed_repositoryFunction · 0.76
test_guardedFunction · 0.36