blob: d1cf638d2154a88a2f7f085d8c88614a22c6dbe0 [file] [log] [blame]
Roman Elizarov5459c102020-08-11 12:27:36 +03001// This file was automatically generated from basic-serialization.md by Knit tool. Do not edit.
2package example.exampleClasses08
3
4import kotlinx.serialization.*
5import kotlinx.serialization.json.*
6
Leonid Startsev3ac9b892022-01-26 12:45:00 +03007@Serializable
Roman Elizarov5459c102020-08-11 12:27:36 +03008data class Project(val name: String, @Transient val language: String = "Kotlin")
9
10fun main() {
11 val data = Json.decodeFromString<Project>("""
12 {"name":"kotlinx.serialization","language":"Kotlin"}
13 """)
14 println(data)
15}