toModel

fun toModel(metadata: DeviceMetadata? = null): Node(source)

The one NodeEntity to Node mapping. metadata comes from the node's MetadataEntity row, when joined.