I am using Retrofit to load data from backend. The POJO implements Parcelable. I am facing issues while reading nd writing to/from the POJO. I think it's because the field name is different from what I get from backend. Here's the POJO:
@SerializedName("poster_path")
public String posterPath;
....
private Movie(Parcel in) {
...
posterPath= in.readString();
...
}
...//more code
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(posterPath);
}
When I get POJO through intent.getParcelableExtra, the posterPath is null. What am I doing wrong.