title: Updating Array change naming convention to camel-case in firestore document
body: <p>i have an array list of products and when i set it to firestore document using update method the naming of the variables turns into camel-Case despite the variables names in my model is CapWords . so you can see in the first screenshot the the elements of product is CapWords but when i updated it it turns into camel-Case for no reason</p>
  
  <pre><code>override fun onProductClicked(sku: FirebaseProduct) {
  skuItems[0].StatusId = 123 //try to update element in array of products
  FirestoreHelper.update(skuItems)}
  
  fun update(skuItems: ArrayList&lt;FirebaseProduct&gt;) {
  db.collection(Constants.PURCHASE_RECEIPTS).document(1.toString())
  .update("Products", skuItems)} //when i updated the array all the object names turned into camle-case
  </code></pre>
  
  <p>and here is the model class of product purchase receipts</p>
  
  <pre><code>class FirebasePR {
  
  constructor()
  constructor(
      maxabPurchaseReceiptId: Long,
      StatusId: Long?,
      PoId: Long?,
      ScannedAt: String?,
      EndedAt: String?,
      maxabWarehouseId: Long?,
      maxabDeliveryDate: String?,
      ReceiverId: Long?,
      AreaId: Long?,
      AdminId: Long?,
      Products: List&lt;FirebaseProduct&gt;?,
      NumOfRemaining: Long?,
      NumOfReceived: Long?
  ) {
      this.MaxabPurchaseReceiptId = maxabPurchaseReceiptId
      this.StatusId = StatusId
      this.PoId = PoId
      this.ScannedAt = ScannedAt
      this.EndedAt = EndedAt
      this.MaxabWarehouseId = maxabWarehouseId
      this.MaxabDeliveryDate = maxabDeliveryDate
      this.ReceiverId = ReceiverId
      this.AreaId = AreaId
      this.AdminId = AdminId
      this.Products = Products
      this.NumOfRemaining = NumOfRemaining
      this.NumOfReceived = NumOfReceived }
  
  var MaxabPurchaseReceiptId: Long? = null
  var StatusId: Long? = null
  var PoId: Long? = null
  var ScannedAt: String? = null
  var EndedAt: String? = null
  var MaxabWarehouseId: Long? = null
  var MaxabDeliveryDate: String? = null
  var ReceiverId: Long? = null
  var AreaId: Long? = null
  var AdminId: Long? = null
  var Products: List&lt;FirebaseProduct&gt;? = null
  var NumOfRemaining: Long? = null
  var NumOfReceived: Long? = null}
  </code></pre>
  
  <p>and firebase product class is a list inside the FirebasePR</p>
  
  <pre><code>class FirebaseProduct {
  constructor()
  constructor(
      CreatedAt: Timestamp,
      UpdatedAt: Timestamp,
      MaxabProductPurchaseReceiptId: Int,
      MaxabPackingUnitId: Int,
      MaxabProductId: Int,
      MaxabBasicUnitCount: Int,
      IssuedCount: Int,
      ReceivedCount: Int,
      ReceivedAt: Timestamp,
      EndedAt: Timestamp,
      StatusId: Int,
      Quality: Boolean,
      ExpirationDate: Timestamp,
      ProductCode: String,
      MaxabBasicUnitId: Int,
      PalletsNumber: Int,
      MaxabProductNameAr: String,
      MaxabPackingUnitNameAr: String,
      MaxabProductImage: String
  ) {
      this.CreatedAt = CreatedAt
      this.UpdatedAt = UpdatedAt
      this.MaxabProductPurchaseReceiptId = MaxabProductPurchaseReceiptId
      this.MaxabPackingUnitId = MaxabPackingUnitId
      this.MaxabProductId = MaxabProductId
      this.MaxabBasicUnitCount = MaxabBasicUnitCount
      this.IssuedCount = IssuedCount
      this.ReceivedCount = ReceivedCount
      this.ReceivedAt = ReceivedAt
      this.EndedAt = EndedAt
      this.StatusId = StatusId
      this.Quality = Quality
      this.ExpirationDate = ExpirationDate
      this.ProductCode = ProductCode
      this.MaxabBasicUnitId = MaxabBasicUnitId
      this.PalletsNumber = PalletsNumber
      this.MaxabProductNameAr = MaxabProductNameAr
      this.MaxabPackingUnitNameAr = MaxabPackingUnitNameAr
      this.MaxabProductImage = MaxabProductImage
  }
  
  var CreatedAt: Timestamp? = null
  var UpdatedAt: Timestamp? = null
  var MaxabProductPurchaseReceiptId: Int? = null
  var MaxabPackingUnitId: Int? = null
  var MaxabProductId: Int? = null
  var MaxabBasicUnitCount: Int? = null
  var IssuedCount: Int? = null
  var ReceivedCount: Int? = null
  var ReceivedAt: Timestamp? = null
  var EndedAt: Timestamp? = null
  var StatusId: Int? = null
  var Quality: Boolean = false
  var ExpirationDate: Timestamp? = null
  var ProductCode: String = ""
  var MaxabBasicUnitId: Int = 0
  var PalletsNumber: Int = 0
  var MaxabProductNameAr: String = ""
  var MaxabPackingUnitNameAr: String = ""
  var MaxabProductImage: String = ""}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/meTaF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/meTaF.png" alt="look at the naming of objects here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RdzCu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RdzCu.png" alt="and now the naming changed to camel-case"></a></p>