I am just trying to create serializable values but i am getting the following error;
Serializer has not been found for type 'LocalDate'. To use context serializer as fallback, explicitly annotate type or property with @Contextual
My code is pretty simple;
import kotlinx.serialization.Serializable
import java.time.LocalDate
Serializable
data class ProviderData(
val provider: String,
@Contextual
val serviceStartDate: LocalDate,
@Contextual
val serviceEndDate: LocalDate
)
What should I do to be able to user Date, or LocalDate types?