Skip to content

Commit

Permalink
~fix guide
Browse files Browse the repository at this point in the history
  • Loading branch information
shanshin committed Aug 1, 2024
1 parent 9723c2a commit 6bf9b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,7 @@ sealed class Project {
abstract val name: String
}

@KeepGeneratedSerializer
@Serializable(with = BasicProjectSerializer::class)
@SerialName("basic")
data class BasicProject(override val name: String): Project()
Expand Down
1 change: 1 addition & 0 deletions guide/example/example-json-29.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sealed class Project {
abstract val name: String
}

@KeepGeneratedSerializer
@Serializable(with = BasicProjectSerializer::class)
@SerialName("basic")
data class BasicProject(override val name: String): Project()
Expand Down

0 comments on commit 6bf9b4e

Please sign in to comment.