net.nemerosa.ontrack.model.structure.ServiceConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.structure
import com.fasterxml.jackson.databind.JsonNode
/**
* Association between a configuration service ID and an actual configuration data.
*/
data class ServiceConfiguration(
val id: String,
val data: JsonNode?
) {
companion object {
@JvmStatic
fun of(node: JsonNode): ServiceConfiguration {
return ServiceConfiguration(
node.get("id").asText(),
node.get("data")
)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy