docs: def _to_dict(self):
          """Return a json dictionary representing this model."""
          _dict = {}
          if hasattr(self, 'consumption_preference_category_id'
                    ) and self.consumption_preference_category_id is not None:
              _dict[
                  'consumption_preference_category_id'] = self.consumption_preference_category_id
          if hasattr(self, 'name') and self.name is not None:
              _dict['name'] = self.name
          if hasattr(self, 'consumption_preferences'
                    ) and self.consumption_preferences is not None:
              _dict['consumption_preferences'] = [
                  x._to_dict() for x in self.consumption_preferences
              ]
          return _dict