code: def to_dict(self) -> OrderedDict:
          
          result = OrderedDict()
          result["histogram_type"] = type(self).__name__
          result["binnings"] = [binning.to_dict() for binning in self._binnings]
          result["frequencies"] = self.frequencies.tolist()
          result["dtype"] = str(np.dtype(self.dtype))
  
          # TODO: Optimize for _errors == _frequencies
          result["errors2"] = self.errors2.tolist()
          result["meta_data"] = self._meta_data
          result["missed"] = self._missed.tolist()
          result["missed_keep"] = self.keep_missed
          self._update_dict(result)
          return result
docs: Dictionary with all data in the histogram.
  
          This is used for export into various formats (e.g. JSON)
          If a descendant class needs to update the dictionary in some way
          (put some more information), override the _update_dict method.