-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Remove the following serialization functions as it's unused and already replaced by serialization function on Kumo JSON.
Lines 69 to 87 in bbd1145
| def msg_to_dict(msg: MsgType) -> dict: | |
| fields = msg.get_fields_and_field_types() | |
| msg_dict = {} | |
| for field in fields: | |
| if hasattr(msg, field): | |
| msg_dict[field] = getattr(msg, field) | |
| return msg_dict | |
| def dict_to_msg(msg_dict: dict, msg: MsgType) -> MsgType: | |
| fields = msg.get_fields_and_field_types() | |
| for field in fields: | |
| if hasattr(msg, field): | |
| setattr(msg, field, msg_dict.get(field)) | |
| return msg |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request