code: def to_array(self):
          
          array = super(ReplyKeyboardMarkup, self).to_array()
          array['keyboard'] = self._as_array(self.keyboard)  # type list of list of KeyboardButton
  
          if self.resize_keyboard is not None:
              array['resize_keyboard'] = bool(self.resize_keyboard)  # type bool
          if self.one_time_keyboard is not None:
              array['one_time_keyboard'] = bool(self.one_time_keyboard)  # type bool
          if self.selective is not None:
              array['selective'] = bool(self.selective)  # type bool
          return array
docs: Serializes this ReplyKeyboardMarkup to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict