docs: def to_dict(self):
          """Return a dictionary containing Bond data."""
          data = {'aid1': self.aid1, 'aid2': self.aid2, 'order': self.order}
          if self.style is not None:
              data['style'] = self.style
          return data