Parse the key/value pairs into the a new message instance. Parameters ----------- value: Dict[:class:`str`, Any] The dictionary to parse from. Returns -------- :class:`Message` The initialized message.
(cls: type[Self], value: Mapping[str, Any])
| 1593 | |
| 1594 | @hybridmethod |
| 1595 | def from_dict(cls: type[Self], value: Mapping[str, Any]) -> Self: # type: ignore |
| 1596 | """ |
| 1597 | Parse the key/value pairs into the a new message instance. |
| 1598 | |
| 1599 | Parameters |
| 1600 | ----------- |
| 1601 | value: Dict[:class:`str`, Any] |
| 1602 | The dictionary to parse from. |
| 1603 | |
| 1604 | Returns |
| 1605 | -------- |
| 1606 | :class:`Message` |
| 1607 | The initialized message. |
| 1608 | """ |
| 1609 | self = cls(**cls._from_dict_init(value)) |
| 1610 | self._serialized_on_wire = True |
| 1611 | return self |
| 1612 | |
| 1613 | @from_dict.instancemethod |
| 1614 | def from_dict(self, value: Mapping[str, Any]) -> Self: |