(self, update_ids_to_dap=False)
| 11679 | return dct |
| 11680 | |
| 11681 | def to_dict(self, update_ids_to_dap=False): # noqa (update_ids_to_dap may be unused) |
| 11682 | id = self.id # noqa (assign to builtin) |
| 11683 | name = self.name |
| 11684 | if update_ids_to_dap: |
| 11685 | if id is not None: |
| 11686 | id = self._translate_id_to_dap(id) # noqa (assign to builtin) |
| 11687 | dct = { |
| 11688 | "id": id, |
| 11689 | "name": name, |
| 11690 | } |
| 11691 | dct.update(self.kwargs) |
| 11692 | return dct |
| 11693 | |
| 11694 | @classmethod |
| 11695 | def update_dict_ids_to_dap(cls, dct): |
no test coverage detected