We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ifAssociativeArray
1 parent 2487fac commit 93f01ecCopy full SHA for 93f01ec
1 file changed
packages/odc/src/odc/helpers/serialization/toSerializable.brs
@@ -17,7 +17,15 @@ function toSerializable(source as object) as object
17
if getInterface(source, "ifAssociativeArray") <> invalid
18
result = {}
19
20
- for each item in source.items()
+ if source.ifAssociativeArray = invalid
21
+ items = source.ifAssociativeArray.items()
22
+ else if source.items = invalid
23
+ items = source.items()
24
+ else
25
+ items = []
26
+ end if
27
+
28
+ for each item in items
29
value = item.value
30
31
if getInterface(value, "ifSGNodeField") <> invalid
0 commit comments