firestore android adding "stability" field in custom Parcelable class while saving

PressRex profile image
by PressRex
firestore android adding "stability" field in custom Parcelable class while saving

I have a parcelable class Image

@Parcelize
data class Image(val id:String="",val url:String=""):Parcelable

and for saving in firestore

val data = HashMap<String,Any>()
data["title"] = "My Title"
data["image] = Image("dgdg1","https://someimagepath")
firestore.collection("collectionname").document(documentId).set(data,SetOptions.merge()).await()

data is getting saved in firestore but inside the "image" it is adding an extra field "stability" . The out put result is like this

{  
  "title":"My Title",  
  "image":{
    "stability":0,
    "id":"dgdg1",
    "url":"https://someimagepath"
  } 
}

why is this "stability" is automatically added to the image object.

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More