I am using Kotlin Serialization to serialize a custom type which contains a UUID field
@Serializable
data class MyDataClass {
val field1: String,
val field2: UUID
}
I got the following error and did not know what to do:
Serializer has not been found for type 'UUID'. To use context serializer as fallback, explicitly annotate type or property with @Contextual