We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df75ca commit 641ece1Copy full SHA for 641ece1
packages/cloud_firestore_odm/doc/defining-models.md
@@ -21,8 +21,10 @@ part 'user.g.dart';
21
/// as Timestamps and DateTimes.
22
/// This variable can be reused between different models
23
const firestoreSerializable = JsonSerializable(
24
- explicitToJson: true,
25
converters: firestoreJsonConverters,
+ // The following values could alternatively be set inside your `build.yaml`
26
+ explicitToJson: true,
27
+ createFieldMap: true,
28
);
29
30
@firestoreSerializable
0 commit comments