package com.example.android.popmovies.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Class Movie: the movie model.
 *
 * It is annotated to be used by GSon to deserialize JSON data.
 */
public class Movie implements Parcelable {

    public static final String MOVIE_CONTENT = Movie.class.getSimpleName() + ".MOVIE_CONTENT";

    @SerializedName("id") public final int id;
    @SerializedName("title") public final String title;
    @SerializedName("original_title") public final String titleOriginal;
    @SerializedName("overview") public final String synopsis;
    @SerializedName("vote_average") public final String rating;
    @SerializedName("poster_path") public final String posterPath;

    Movie(Parcel in) {
        id = in.readInt();
        title = in.readString();
        titleOriginal = in.readString();
        synopsis = in.readString();
        rating = in.readString();
        posterPath = in.readString();
    }

    public static final Creator<Movie> CREATOR = new Creator<Movie>() {
        @Override
        public Movie createFromParcel(Parcel in) {
            return new Movie(in);
        }

        @Override
        public Movie[] newArray(int size) {
            return new Movie[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(title);
        dest.writeString(titleOriginal);
        dest.writeString(synopsis);
        dest.writeString(rating);
        dest.writeString(posterPath);
    }
}

@@ -763,16 +763,85 @@
 terPath;
+%0A    @SerializedName(%22release_date%22) public final String releaseDate;
 %0A%0A    Mo
@@ -1062,24 +1062,63 @@
 adString();%0A
+        releaseDate = in.readString();%0A
     %7D%0A%0A    p
@@ -1768,16 +1768,55 @@
 rPath);%0A
+        dest.writeString(releaseDate);%0A
     %7D%0A%7D%0A

Add release date to movie model