aarjav
10/14/2020, 2:00 PMdata class Node<T: Any>(val id: String, val type: String, val value: T) , is it possible to deserialize value based on the type field?gildor
10/14/2020, 2:02 PMaarjav
10/14/2020, 2:15 PMNode class, and I do not control objects of type T (3rd party classes). So the type information of the value property I want to keep external to the instance.aarjav
10/14/2020, 2:18 PMdata class Graph<T: Any>(val nodes: List<Node<out T>>)gildor
10/14/2020, 2:34 PMgildor
10/14/2020, 2:36 PMaarjav
10/14/2020, 3:00 PMgildor
10/14/2020, 3:53 PMsandwwraith
10/15/2020, 6:45 PM