Skip to content

How to deserialize to immutable collection type? #11386

Closed Answered by Nahuel92
Nahuel92 asked this question in General
Discussion options

You must be logged in to vote

I ended up solving my issue by annotating my collection fields with either:

  • @Serdeable.Deserializable(as = ImmutableList.class)
  • @Serdeable.Deserializable(as = ImmutableMap.class)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Nahuel92
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Nahuel92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants