code: def serialize(self):
          
          pickle = super(ResourceParameter, self).serialize()
          pickle['frequency'] = self.frequency
          pickle['unit'] = self._unit.serialize()
          return pickle
docs: Convert the parameter into a dictionary.
  
          :return: The parameter dictionary.
          :rtype: dict