I mean I know that for my use case all of these data classes are serializable. I'd like to be able to serialize to JSON without having to make a base class that they all inherit from solely so I can implement
fun BaseDataClass.toJSON()
. Just seemed more obtuse than doing it directly on a data class.