firebase-kotlin-sdk
firebase-kotlin-sdk copied to clipboard
SerializationException: This serializer must be used with FirebaseEncoder
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.