withConverter method

Query withConverter(
  1. FirestoreDataConverter? converter
)

Applies a custom data converter to this Query, allowing you to use your own custom model objects with Firestore. When you call get() on the returned Query, the provided converter will convert between Firestore data of type NewDbModelType and your custom type NewAppModelType.

@param converter Converts objects to and from Firestore. Passing in null removes the current converter. @return A Query that uses the provided converter.

Implementation

external Query withConverter(FirestoreDataConverter? converter);