Skip to content

Commit

Permalink
use wrappedValue in to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Jul 24, 2024
1 parent 761d94f commit 8b5dd83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compas_ifc/entities/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def to_dict(self, recursive=False, ignore_fields=[], include_fields=[]):
continue

value = getattr(self, key)
if hasattr(value, "wrappedValue"):
value = value.wrappedValue

if recursive and isinstance(value, Base):
value = value.to_dict(recursive=recursive)
Expand Down

0 comments on commit 8b5dd83

Please sign in to comment.