ModelData

@Serializable
data class ModelData(val id: String? = null, val root: NodeData)

Constructors

Link copied to clipboard
constructor(id: String? = null, root: NodeData)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: String? = null
Link copied to clipboard

Functions

Link copied to clipboard
fun load(branch: IBranch, idStrategy: (NodeData) -> Long? = null, setOriginalIdProperty: Boolean = true)

The idStrategy can be provided if nodes should be created with a specific ID. setOriginalIdProperty whether to safe the original ID in NodeData.ID_PROPERTY_KEY.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toJson(): String