Dylan
10/11/2022, 3:28 PMdata object. The type of data is defined by isTypeA or isTypeB within the object itself. (See sample in thread).
I was thinking about using a sealed class. Is there a way to specify using annotations that the type of the object should be defined by a value within that object?Dylan
10/11/2022, 3:28 PM{
  "data": {
    "isTypeA": 1
    ...
  }
}
{
  "data": {
    "isTypeB": 1
    ...
  }
}ephemient
10/11/2022, 3:39 PMDylan
10/11/2022, 5:43 PMDylan
10/11/2022, 7:15 PM