I have a protobuf model of such: ``` message Video...
# serialization
t
I have a protobuf model of such:
Copy code
message Video {
   map<string,string> previews = 5;
   // ...
}
I want to deserialize it in the such data class
Copy code
@Serializable
class Video(
   val thumbUrl: String
)
where thumbUrl === previews[“thumb”], any tips how to achieve that with kotlinx.serialization?
Ok, here I made
previews
a private property and exposed
thumbUrl
as calculated one