Open Lewik opened 2 years ago
I have make interface for entities (kotlinx serialization)
interface WithId { val id: String //I use value class here actually }
All other entities inherits it How to deal with _id globally without @SerialName("_id") everywhere ?
@SerialName("_id")
I would say this is more a kotlinx.serialization question (see https://github.com/Kotlin/kotlinx.serialization/issues/33). I think it's not feasible for now.
I have make interface for entities (kotlinx serialization)
All other entities inherits it How to deal with _id globally without
@SerialName("_id")
everywhere ?