blob: 148a335a6c4c77c0f79d40e573490269894f0d27 [file] [log] [blame]
// This file was automatically generated from builtin-classes.md by Knit tool. Do not edit.
package example.exampleBuiltin05
import kotlinx.serialization.*
import kotlinx.serialization.json.*
@Serializable // required because of @SerialName
enum class Status { @SerialName("maintained") SUPPORTED }
@Serializable
class Project(val name: String, val status: Status)
fun main() {
val data = Project("kotlinx.serialization", Status.SUPPORTED)
println(Json.encodeToString(data))
}