code: def get_parameter(self):
          
          # Set value for each key
          for key, value in list(self._parameter.options.items()):
              if value.get('type') == STATIC:
                  continue
              elif value.get('type') == SINGLE_DYNAMIC:
                  new_value = self.spin_boxes.get(key).value()
                  self._parameter.set_value_for_key(key, new_value)
              elif value.get('type') == MULTIPLE_DYNAMIC:
                  # Need to iterate through all items
                  items = []
                  for index in range(self.list_widget.count()):
                      items.append(self.list_widget.item(index))
                  new_value = [i.text() for i in items]
                  self._parameter.set_value_for_key(key, new_value)
  
          # Get selected radio button
          radio_button_checked_id = self.input_button_group.checkedId()
          # No radio button checked, then default value = None
          if radio_button_checked_id == -1:
              self._parameter.selected = None
          else:
              self._parameter.selected = list(self._parameter.options.keys())[
                  radio_button_checked_id]
  
          return self._parameter
docs: Obtain list parameter object from the current widget state.
  
          :returns: A DefaultValueParameter from the current state of widget
          :rtype: DefaultValueParameter