decodeFromPlainValue

fun <T> decodeFromPlainValue(deserializer: DeserializationStrategy<T>, value: Any?, documentReference: Any? = null): T(source)

Decodes plain values to a T with deserializer, as the Android SDK's mapper does in calls such as DocumentSnapshot.toObject(Class). For Firestore, documentReference is the document that @DocumentId properties receive (its id for a String property); it is ignored by the other products.