Skip to content

Commit

Permalink
Merge pull request #11
Browse files Browse the repository at this point in the history
Updating Linked Serializer
  • Loading branch information
mnbjhu authored May 14, 2023
2 parents c7224e9 + eb86a93 commit 2e1e6aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LinkedSerializer<T : Any>(

override fun serialize(encoder: Encoder, value: Linked<T>) {
when(value) {
is Linked.Reference -> encoder.encodeStructure(descriptor) { encodeStringElement(descriptor, 0, value.id) }
is Linked.Reference -> encoder.encodeString(value.id)
is Linked.Actual -> {
encoder.encodeSerializableValue(tSerializer, value.result)
}
Expand Down

0 comments on commit 2e1e6aa

Please sign in to comment.