I have a model:
public class ItemsSet {
@SerializedName("trk")
private String mTracking;
@SerializedName("pg")
private int mPage;
@SerializedName("more")
private boolean mMoreResults;
@SerializedName("items")
private List<Item> mItems;
// I want to annotate this directly without eds object
private List<ItemSubmitter> mItemSubmitters;
...
}
And JSON:
"payload" : {
"trk" : "...",
"##type" : "PaginatedResponse`3",
"eds" : {
  "##type" : "Activity.ExtendedDataSet",
  "usrs" : [
    {
      "##type" : "SNIP",
      "kind" : "connection",
      "identifier" : "4033",
      "name" : "James Johnson"
    },
    {
      "##type" : "SNIP",
      "kind" : "dealercontact",
      "identifier" : "317564",
      "name" : "Savannah Roberts"
    },
    {
      "##type" : "SNIP",
      "kind" : "lsp",
      "identifier" : "89236",
      "name" : "Jenny"
    }
  ]
},
"items" : [..]
... end of json}
I'm using Retrofit with GSON and want to get usrs filed inside eds objetc without serialization this eds object. Can I do it directly? I know in iOS I can do like this "eds.usrs" but here it doesn't work.
 
     
    