I store a list of references in the Cloud Firestore. When I get the data I it gives me this error:
"java.lang.RuntimeException: Parcel: unable to marshal value com.google.firebase.firestore.DocumentReference@44bef898"
I've searched on the internet but didn't find any solution. Thank you in advance
User.kt
import android.os.Parcelable
import com.google.firebase.firestore.DocumentReference
import kotlinx.android.parcel.Parcelize
import kotlinx.android.parcel.RawValue
@Parcelize
data class User(
val bio: String? = null,
val email: String? = null,
val followers: @RawValue List<DocumentReference>? = null,
val following: @RawValue List<DocumentReference>? = null,
val picture: String? = null,
val uid: String? = null,
val username: String? = null
) : Parcelable