blob: ab99810cb86185657cc54d353f82e0e8c7e0243f [file] [log] [blame] [edit]
// This file was automatically generated from polymorphism.md by Knit tool. Do not edit.
package example.examplePoly08
import kotlinx.serialization.*
import kotlinx.serialization.json.*
@Serializable
sealed class Response
@Serializable
object EmptyResponse : Response()
@Serializable
class TextResponse(val text: String) : Response()
fun main() {
val list = listOf(EmptyResponse, TextResponse("OK"))
println(Json.encodeToString(list))
}