docs: def serialize(self):
          """ Serializes the CaseWrapper object for collection.
  
          Warning, this will only grab the available information.
          It is strongly that you only call this once all specs and
          tests have completed.
          """
          expects = [exp.serialize() for exp in self.expects]
          converted_dict = {
              'id': self.id,
              'name': self.pretty_name,
              'raw_name': self.name,
              'doc': self.doc,
              'error': self.error,
              'skipped': self.skipped,
              'skip_reason': self.skip_reason,
              'execute_kwargs': self.safe_execute_kwargs,
              'metadata': self.metadata,
              'start': self.start_time,
              'end': self.end_time,
              'expects': expects,
              'success': self.success
          }
          return remove_empty_entries_from_dict(converted_dict)