def to_typed_dict(self, typed_dict): for q in self.qualifiers: q.to_typed_dict(typed_dict) val = self.val if self.val: val = [cim_to_typed_object(v) for v in self.val.vals] typed_dict[self.name] = val
def to_typed_dict(self, typed_dict): if isinstance(self.val, CIMValueArray): val = [cim_to_typed_object(val, self.type) for val in self.val.vals] else: val = cim_to_typed_object(self.val, self.type) typed_dict[self.name] = val
def to_typed_dict(self, typed_dict): for q in self.qualifiers: q.to_typed_dict(typed_dict) val = self.val.val if self.val is not None else None typed_dict[self.name] = cim_to_typed_object(val, self.type)