public class POIItem {
@SerializedName("id")
private String id;
@SerializedName("phone")
private String phone;
private String title;
public String getId() {
return id;
}
public String getPhone() {
return phone;
}
}
I need to represent each field as line in listview,where the item of listview have title ,which is the method name ,"Phone" and the value is getPhone(). How to get the method name or the SerializedName of each field and to get the method counts