Say I have an Object:
Object A String field1 = \"abc\"; String field2 = \"xyz\";
The json for the above is:
{ \"Obj
Use the annotation @SerializedName("name") on your fields. Like this:
@SerializedName("name")
Object A @SerializedName("f1") String field1 = "abc"; @SerializedName("f2") String field2 = "xyz";
See https://google.github.io/gson/apidocs/com/google/gson/annotations/SerializedName.html.