writeToParcel

public void writeToParcel(Parcel dest, int flags)

// 对消息属性进行序列化,将类的数据写入外部提供的 Parcel 中,此处以需要序列化"用户信息","@信息" 等为例

Parameters

dest

The Parcel in which the object should be written.

flags

Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.