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