Sam
08/01/2019, 6:51 PM{
"type": "V",
"expressions": [
{
"type": "M",
"expr": "5+6"
}
],
"resultType": "success"
}
I started to go down the route of using the polymorphic serializer but I didn't know how to customize the type
output. Should I write my own custom serializer for this type? If so is there a good example of how to do this?Dominaezzz
08/01/2019, 7:10 PMDominaezzz
08/01/2019, 7:10 PM@Serializer(PolymorphicSerializer::class)
.Dominaezzz
08/01/2019, 7:11 PM@SerialName("M")
or @SerialName("V")
.Dominaezzz
08/01/2019, 7:11 PMSam
08/01/2019, 9:01 PM