MCPcopy Create free account
hub / github.com/FastLED/FastLED / to_dict

Method to_dict

ci/util/pio_package_messages.py:145–154  ·  view source on GitHub ↗

Convert to dictionary for JSON serialization. Returns: Dictionary representation of the status

(self)

Source from the content-addressed store, hash-verified

143 current_operation: str | None = None
144
145 def to_dict(self) -> dict[str, Any]:
146 """Convert to dictionary for JSON serialization.
147
148 Returns:
149 Dictionary representation of the status
150 """
151 result = asdict(self)
152 # Convert DaemonState enum to string value
153 result["state"] = self.state.value
154 return result
155
156 @classmethod
157 def from_dict(cls, data: dict[str, Any]) -> "DaemonStatus":

Callers 4

read_status_file_safeFunction · 0.95
update_statusFunction · 0.95
test_to_dictMethod · 0.95
test_roundtripMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_to_dictMethod · 0.76
test_roundtripMethod · 0.76