Closed luqmanhakem closed 3 years ago
Could not generate `fromJson` code for `geopoint`.
To support the type `GeoPoint` you can:
* Use `JsonConverter`
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html
* Use `JsonKey` fields `fromJson` and `toJson`
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/fromJson.html
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/toJson.html
Could not generate `fromJson` code for `geopoint`. To support the type `GeoPoint` you can: * Use `JsonConverter` https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html * Use `JsonKey` fields `fromJson` and `toJson` https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/fromJson.html https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/toJson.html
Thank you! Able to generate .g.dart file. Haven't test this but will closed the issue as for now.
Kudos to you!
so did you write a custom converter for geoPoint? Can you share the code? :)
PS Nevermind :) https://stackoverflow.com/questions/61707320/how-to-serialize-geopoint-using-dart-json-serializable-package
Geopoints are natively supported by the ODM now. Just make sure you follow the docs and correctly setup the list of "JsonConverters" to include the built-in ones.
Describe the bug Hello. I tried to run
flutter pub run build_runner build --delete-conflicting-outputs
for this below code and this error occur.Is this a bug or am I'm doing it wrong. Also, couldn't manage to find any open issue. Thanks in advance.
To Reproduce
Expected behavior