Hi, Shweta Chauhan
I think this is because @SerializedName(“”)
would transfer all empty string into enum Saving,
Would you try to use
public enum Type {
@SerializedName(“Calendar”)
Calendar,
@SerializedName(“Saving”)
Saving
}
Hi, Shweta Chauhan
I think this is because @SerializedName(“”)
would transfer all empty string into enum Saving,
Would you try to use
public enum Type {
@SerializedName(“Calendar”)
Calendar,
@SerializedName(“Saving”)
Saving
}
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Lead Android & iOS Mobile Engineer at Yahoo (Verizon Media) Taiwan https://www.linkedin.com/in/hanruyeh/