I have a data class
in Kotlin and I have a property in the class named isFoo
, note that it starts with is
. Kotlin creates setters differently for fields that start with is
as mentioned here due to this I am receiving an error that looks something like this
ClassMapper: No setter/field for isFoo found on class com.domain.appName.models.Settings
How can I overcome this so fields that start with is
in the data class are correctly set when using the getValue
function of the Realtime Database's DataSnapshot
?