Open jimmyff opened 5 years ago
Sorry for the slow response.
I believe the problem is that the GeoPoint
is not included in the data as a String, rather it's the actual GeoPoint
class.
You should be able to handle this by adding a custom Serializer
that just passes the value through without changing it, as recommended here:
https://github.com/google/built_value.dart/issues/417#issuecomment-391661750
Hope that helps!
Hey @davidmorgan, I'm trying to integrate with Firestore's GeoPoint data type. I'm having difficulty, could you point me in the right direction?
This is what is coming to and from Firestore:
I've created GeoPoint built_value class:
I've created a serializer:
I've then created a test:
The test is failing with the following output:
Any help would be great. Thanks