Answering question in
#language-proposals: For Kotlin Serialiazation we have a vision of "external serializers" that you can define for 3rd-party classes. For now it works only on per-field basis like
@Serializable(with = MyDateSerializer::class) var date: Date = ...
In the future, we are exploring ways to define them per-type.