Hi, i have probably stupid question, but so far i ...
# getting-started
k
Hi, i have probably stupid question, but so far i can't solve it ... I have class
Copy code
data class Molor(val molor: String) {

    val articleId: Long
    val colorId: Long

    override fun toString(): String {
        return molor.replace("_", "-")
    }

    init {
        validateEx(molor)
        val list = molor.split("_", "-")
        this.articleId = list[0].toLong()
        this.colorId = list[1].toLong()
    }
}
that i want to deserialize with jackson (v2.8.1 with kotlin module)