You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why this is happening but the @SerializedName annotation is supposed to work for both serialization and deserialization but it appears to not work at all. It wasn't noticed until now since we set FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES on the gson object. but if you look at the rawCenter method line, we use @SerializedName("center") but the output when serializing the object is raw_center still. Any ideas on what the issue could be here @zugaldia@tobrun@osana@danesfeder?
The text was updated successfully, but these errors were encountered:
This results in using the annotations as expected but requires a bit more work removing and changing the code I didn't know was getting generated. I predict a few of the TypeAdapterFactorys can be removed. In 0.7 of A-V-G, there's also a @GenerateTypeAdapter annotation which should clean the code up further.
I'm not sure why this is happening but the
@SerializedName
annotation is supposed to work for both serialization and deserialization but it appears to not work at all. It wasn't noticed until now since we setFieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES
on thegson
object. but if you look at therawCenter
method line, we use@SerializedName("center")
but the output when serializing the object israw_center
still. Any ideas on what the issue could be here @zugaldia @tobrun @osana @danesfeder?The text was updated successfully, but these errors were encountered: