code: def to_dict(self):
          '''Save this target port into a dictionary.'''
          d = super(TargetPort, self).to_dict()
          d['portName'] = self.port_name
          return f to_dict(self):
          '''Save this target port into a dictionary.'''
          d = super(TargetPort, self).to_dict()
          d['portName'] = self.port_name
          return d
docs: Save this target port into a dictionary.