withConverter<R extends Object?> method
ColRef<R>
withConverter<R extends Object?>({
- required R fromFirestore(
- DocumentSnapshotForAll<
R> , - dynamic
- DocumentSnapshotForAll<
- required Map<
String, Object?> toFirestore(- R,
- dynamic
Implementation
ColRef<R> withConverter<R extends Object?>(
{required R Function(DocumentSnapshotForAll<R>, dynamic) fromFirestore,
required Map<String, Object?> Function(R, dynamic) toFirestore}) {
FirestoreConverter<R> converter = FirestoreConverter<R>(
toFirestore: toFirestore, fromFirestore: fromFirestore);
return ColRef<R>._withQuery(reference,
queryProperties: _queryProperties, converter: converter);
}