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

Method to_dict

ci/util/pio_package_messages.py:76–82  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

74 request_id: str = field(default_factory=lambda: f"req_{int(time.time() * 1000)}")
75
76 def to_dict(self) -> dict[str, Any]:
77 """Convert to dictionary for JSON serialization.
78
79 Returns:
80 Dictionary representation of the request
81 """
82 return asdict(self)
83
84 @classmethod
85 def from_dict(cls, data: dict[str, Any]) -> "PackageRequest":

Callers 2

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