createOrUpdateJetpack

abstract suspend fun createOrUpdateJetpack(firebaseJetpack: FirebaseJetpack)(source)

Creates or replaces the document identified by the model's userId and id using set(), without merge.

Fresh upload mappings leave serverUpdatedAt null so Firestore assigns a server timestamp.

Parameters

firebaseJetpack

Full document content; fields omitted from an existing document are removed.

Throws

com.google.firebase.firestore.FirebaseFirestoreException

if the SDK write fails