writeToParcel

public void writeToParcel(Parcel dest, int flags)

Writes the class's data into the provided Parcel.

Parameters

dest

The Parcel where the object is written.

flags

Additional flags about how the object is written, which can be 0 or PARCELABLE_WRITE_RETURN_VALUE.