Closed gurolcay closed 4 years ago
The problem is that Firestore only partially serializes to JSON--as you've noticed, it leaves some classes like DocumentReference
as the originals.
You can fix this with a custom serializer that just passes through the value, as described here for GeoPoint
:
https://github.com/google/built_value.dart/issues/417#issuecomment-391661750
I am using build_value lib is version '>=5.5.5 <7.0.0'
I have a problem which is when I deserialize my model, I can't get correctly. Because the model has a list of DocumentReference.
My model:
When I want to get one of user from fırestore, i get this data:
After deserialization, I got
What can I do to fix this?