def serialize(self):
        """Convert the parameter into a dictionary.

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

        :return: The parameter dictionary.
        :rtype: dict