I can see that GenericTypeIndicator is from Firebase but I'm getting Unresolved reference: GenericTypeIndicator
Alternatively, I have a custom class
class Foo<T : Car> {
...
}
When I make a request to Firestore and want to convert DocumentSnapshot
to my POJO, how exactly should I do? I'm getting Could not deserialize object. Class Foo has generic type parameters, please use GenericTypeIndicator instead
. Does that mean I have to do something like here?