firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

SerializationException: This serializer must be used with FirebaseEncoder

Open Monabr opened this issue 1 year ago • 0 comments
trafficstars

Hello.

Here code I am using

@Serializable(with = TimestampSerializer::class)
override val serverTime: Timestamp = getDefaultPlatformTimestamp(),

And getting

kotlinx.serialization.SerializationException: This serializer must be used with FirebaseEncoder

Before set data to Firestore I am using Properties.encodeToMap(myClass). I believe here the error is occurs.

What am I doing wrong? Documentations says nothing about this case.

Monabr avatar Oct 29 '24 18:10 Monabr