<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_dict(self) -> OrderedDict: """Dictionary representation of the binning schema. This serves as template method, please implement _update_dict """

        result = OrderedDict()
        result["adaptive"] = self._adaptive
        result["binning_type"] = type(self).__name__
        self._update_dict(result)
        return result