Firebase\'s snapshot.getValue() expects to be called as follows:
snapshot.getValue()
snapshot?.getValue(Person::class.java)
However I would like t
you can get its class type like this
snapshot?.getValue((this.javaClass .genericSuperclass as ParameterizedType) .actualTypeArguments[0] as Class)