Paul Griffith
10/26/2020, 11:43 PMtype
key, but if I type the field in the data class to the specific sealed class member, it just serializes the different properties and does not include the type discriminator (by design, surely - but I'm hoping to avoid it anyways)Paul Griffith
10/26/2020, 11:45 PMencodeDefaults
won't work, because I have lots of other nullable things that I don't want to send over the wire. I'm guessing the solution will be a custom serializer for as many of these sometimes-discriminated-sometimes-not members as I havePaul Griffith
10/27/2020, 5:56 PMPlainTextObject
is the sealed class member, TextObject
is the base class.