Mikael
11/03/2019, 9:56 PM[
{
"currencyCode": "CHF",
"currencyFxRate": 9.808,
"currencyFxRateDate": "2019-10-01",
"currencyChangedDate": "2019-10-01 00:00:00"
},
{
"currencyCode": "DKK",
"currencyFxRate": 1.434,
"currencyFxRateDate": "2019-10-01",
"currencyChangedDate": "2019-10-01 00:00:00"
}
]
Therefore I created
@Serializable
data class Currency(
val currencyCode: String,
val currencyFxRate: Double,
val currencyFxRateDate: Date,
val currencyChangedDate: DateTime
)
But for Date
and DateTime
it get the error message: serializer has not been found for type Date. To use context serializer as fallback, explicitly annotate type or property with @ContextualSerialization
.