<Why is my Custom date class not serialisable> I h...
# stackoverflow
r
Why is my Custom date class not serialisable I have the following custom date class in my current Android application import kotlinx.datetime.LocalDate import kotlinx.datetime.format import kotlinx.serialization.Serializable import shared.dates.MyDateFormatterFactory.createFormatter import kotlin.properties.Delegates @Serializable data class MyDate internal constructor( val format: String, internal var date: LocalDate ) { val string get() = _stringRepresentation private val formatter = createFormatter(format)...