I use Firestore (from Firebase). For a reason that I don't understand a variable of one of my classes is not saved (in Firestore) with his correct name.
Here is an example class :
data class ExampleClass(
        val id: String,
        val foo: String,
        val bar: String,
        val isEnabled: Bool)
When I save this object in Firestore, I have no problem with id, foo or bar. However, isEnabled is saved as enabled. The is is removed without any reason that I know of.
Do one of you know if this is normal? I want to save the value as isEnabled and not as enabled.
Also, is it possible to specify a "name" to use in Firestore for each value? So I could force to save that value as "isEnabled". I have seen @PropertyName (Firebase doc) but it does not seem to have the effect I expect.
Thanks in advance