I have a string as following:
IngestDataRequestDto([email protected], ingestionDetails=IngestionDetails(selectedColumns={...
I want to convert this to IngestDataRequestDto.kt data class.
I tried to use deserilize with jackson and also direct casting but both not worked
try {
previousValue = SerializationService.deserialize(sample.previousValue, IngestDataRequestDto::class)
} catch (e: Exception) {
previousValue = sample.previousValue as IngestDataRequestDto
}
try gives jackson error, catch string to object exception