Skip to content

Commit 641ece1

Browse files
authored
docs: Mention createFieldMap in the docs (#9217)
1 parent 6df75ca commit 641ece1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cloud_firestore_odm/doc/defining-models.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ part 'user.g.dart';
2121
/// as Timestamps and DateTimes.
2222
/// This variable can be reused between different models
2323
const firestoreSerializable = JsonSerializable(
24-
explicitToJson: true,
2524
converters: firestoreJsonConverters,
25+
// The following values could alternatively be set inside your `build.yaml`
26+
explicitToJson: true,
27+
createFieldMap: true,
2628
);
2729
2830
@firestoreSerializable

0 commit comments

Comments
 (0)