themishkun
05/06/2019, 9:23 AMmessage Video {
map<string,string> previews = 5;
// ...
}
I want to deserialize it in the such data class
@Serializable
class Video(
val thumbUrl: String
)
where thumbUrl === previews[“thumb”], any tips how to achieve that with kotlinx.serialization?themishkun
05/06/2019, 1:06 PMpreviews
a private property and exposed thumbUrl
as calculated one