code: def to_dict(self):
          '''Save this preceding condition into a dictionary.'''
          d = super(Preceding, self).to_dict()
          e = {}
          if self.timeout != 0:
              e['timeout'] = self.timeout
          if self.sending_timing:
              e['sendingTiming'] = self.sending_timing
          pcs = []
          for pc in self._preceding_components:
              pcs.append(pc.to_dict())
          if pcs:
              e['precedingComponents'] = pcs
          d['condition'] = {'preceding': e}
          return f to_dict(self):
          '''Save this preceding condition into a dictionary.'''
          d = super(Preceding, self).to_dict()
          e = {}
          if self.timeout != 0:
              e['timeout'] = self.timeout
          if self.sending_timing:
              e['sendingTiming'] = self.sending_timing
          pcs = []
          for pc in self._preceding_components:
              pcs.append(pc.to_dict())
          if pcs:
              e['precedingComponents'] = pcs
          d['condition'] = {'preceding': e}
          return d
docs: Save this preceding condition into a dictionary.