

def to_obj(self, return_obj=None, ns_info=None):
    super(ValidTime, self).to_obj(return_obj=return_obj, ns_info=ns_info)
    if (not return_obj):
        return_obj = self._binding_class()
    if self.start_time:
        return_obj.Start_Time = self.start_time.to_obj(ns_info=ns_info)
    if self.end_time:
        return_obj.End_Time = self.end_time.to_obj(ns_info=ns_info)
    return return_obj

dataset/ETHPy150Open STIXProject/python-stix/stix/indicator/valid_time.py ValidTime.to_obj/original