@@ -7,8 +7,7 @@ part 'query.g.dart';
7
7
@Collection < DateTimeQuery > ('firestore-example-app/42/date-time' )
8
8
final dateTimeQueryRef = DateTimeQueryCollectionReference ();
9
9
10
- @JsonSerializable ()
11
- @FirestoreDateTimeConverter ()
10
+ @JsonSerializable (converters: firestoreJsonConverters)
12
11
class DateTimeQuery {
13
12
DateTimeQuery (this .time);
14
13
final DateTime time;
@@ -26,8 +25,7 @@ class FirestoreDateTimeConverter extends JsonConverter<DateTime, Timestamp> {
26
25
@Collection < TimestampQuery > ('firestore-example-app/42/timestamp-time' )
27
26
final timestampQueryRef = TimestampQueryCollectionReference ();
28
27
29
- @JsonSerializable ()
30
- @FirestoreTimestampConverter ()
28
+ @JsonSerializable (converters: firestoreJsonConverters)
31
29
class TimestampQuery {
32
30
TimestampQuery (this .time);
33
31
final Timestamp time;
@@ -36,8 +34,7 @@ class TimestampQuery {
36
34
@Collection < GeoPointQuery > ('firestore-example-app/42/geopoint-time' )
37
35
final geoPointQueryRef = GeoPointQueryCollectionReference ();
38
36
39
- @JsonSerializable ()
40
- @FirestoreGeoPointConverter ()
37
+ @JsonSerializable (converters: firestoreJsonConverters)
41
38
class GeoPointQuery {
42
39
GeoPointQuery (this .point);
43
40
final GeoPoint point;
@@ -46,8 +43,7 @@ class GeoPointQuery {
46
43
@Collection < DocumentReferenceQuery > ('firestore-example-app/42/doc-ref' )
47
44
final documentReferenceRef = DocumentReferenceQueryCollectionReference ();
48
45
49
- @JsonSerializable ()
50
- @FirestoreDocumentReferenceConverter ()
46
+ @JsonSerializable (converters: firestoreJsonConverters)
51
47
class DocumentReferenceQuery {
52
48
DocumentReferenceQuery (this .ref);
53
49
0 commit comments