Hey, I have a problem where this class:
@Serializable
data class EntryRecord(
val id: Int?,
@Contextual val creationDate: Date?,
val contractType: String,
val contractNumber: String,
val pricePrepaid: Int,
var pricePrepaidConfirmed: Boolean,
val priceTotal: Int,
var priceTotalConfirmed: Boolean,
val additionalInfo: String?
)
Is serialized to this string:
"{"_id":null,"_creationDate":null,"_contractType":"Test","_contractNumber":"Test","_pricePrepaid":20099,"_pricePrepaidConfirmed":false,"_priceTotal":400095,"_priceTotalConfirmed":false,"_additionalInfo":""}"
Why is kotlin adding
_
in front of every field name? How do I get rid of this?