Model Controls Export
@Serializable
A serializable snapshot of all controls extracted from a model instance, spanning all three control families.
Produced by Controls.exportAll and consumed by Controls.importAll. The JSON form is produced and accepted by Controls.exportAllAsJson and Controls.importAllFromJson.
Each family defaults to an empty list so that partial exports are valid — a caller may construct this with only the families of interest populated. Controls not present in an imported snapshot are left unchanged in the model.
Parameters
model Name
name of the model that produced this export
numeric Controls
snapshot of all ControlData DTOs
string Controls
snapshot of all StringControlData DTOs
json Controls
snapshot of all JsonControlData DTOs
Constructors
Link copied to clipboard
constructor(modelName: String, numericControls: List<ControlData> = emptyList(), stringControls: List<StringControlData> = emptyList(), jsonControls: List<JsonControlData> = emptyList())
Properties
Functions
Link copied to clipboard
fun ModelControlsExport.toReport(title: String? = null, groupByElement: Boolean = false, includeAllowedValues: Boolean = true, jsonValueWidth: Int = 60, includeComment: Boolean = true, block: ReportBuilder.() -> Unit = {
controlsReport(
export = this@toReport,
groupByElement = groupByElement,
includeAllowedValues = includeAllowedValues,
jsonValueWidth = jsonValueWidth,
includeComment = includeComment,
)
}): ReportNode.Document
Builds a ReportNode.Document for this ModelControlsExport.