Coverage Summary for Class: JsonLdNode (com.ghost.serialization.integration.model)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| JsonLdNode |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(2/2)
|
| JsonLdNode$Organization |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(13/13)
|
| JsonLdNode$Person |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(13/13)
|
| Total |
100%
(3/3)
|
|
100%
(3/3)
|
100%
(28/28)
|
package com.ghost.serialization.integration.model
import com.ghost.serialization.annotations.GhostSerialization
@GhostSerialization(discriminator = "@type")
sealed class JsonLdNode {
@GhostSerialization
data class Person(val name: String, val email: String) : JsonLdNode()
@GhostSerialization
data class Organization(val name: String, val url: String) : JsonLdNode()
}