//code snippets for read and write to parcel constructor(`in`: Parcel) : this( `in`.createTypedArrayList(CustomDataObject.CREATOR).CREATOR) ) override fun writeToParcel(dest: Parcel, flags: Int) {dest.writeTypedList(custDataObjList) Log.d(“test", custDataObjList.size.toString()) // prints 1 Log.d("test", dest.createTypedArrayList(CustomDataObject.CREATOR).size.toString()) // prints 0 }