def to_dict(self):
        m = obj_to_dict(self)
        m['energy_type'] = self.get_energy_type_display()
        m['energy_units'] = self.get_energy_units_display()
        return m
Returns the value of a field as the correct type.
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/models.py/Meter.to_dict--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/api/search/stub/expression_evaluator.py/ExpressionEvaluator._GetFieldValue