Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerializationException: This serializer must be used with FirebaseEncoder #662

Open
Monabr opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@Monabr
Copy link

Monabr commented Oct 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant