mirai-core / net.mamoe.mirai.message.data / CustomMessage / JsonSerializerFactory / serializer

serializer

abstract fun serializer(): KSerializer<M>

得到 MKSerializer.