This PR fixes objects that contain null values. Normally null values would be seen as an type object, and then it would fail on something in the case 'object'. This change will not save the null values, I'm not sure whether this is a correct solution. I could not figure out how to properly save null values. Since we decode the objects back into typescript classes, we don't need the null values.
I also fixed a bug with embedded objects.
The code object.setDictionary(key, object); would create a reference to itself, this does not work, I figured it was a programming error, so I changed it to object.setDictionary(key, nativeObject);
This PR fixes objects that contain null values. Normally null values would be seen as an type object, and then it would fail on something in the case 'object'. This change will not save the null values, I'm not sure whether this is a correct solution. I could not figure out how to properly save null values. Since we decode the objects back into typescript classes, we don't need the null values.
I also fixed a bug with embedded objects. The code
object.setDictionary(key, object);
would create a reference to itself, this does not work, I figured it was a programming error, so I changed it toobject.setDictionary(key, nativeObject);