///|
/// A copy with `label` replaced.
pub fn Node::with_label(self : Node, label : String) -> Node {
{ ..self, label, }
}
///|
/// A copy with `label` replaced.
pub fn Flow::with_label(self : Flow, label : String) -> Flow {
{ ..self, label, }
}
///|
/// A copy with `nodes` replaced.
pub fn Bpmn::with_nodes(self : Bpmn, nodes : ArrayView[Node]) -> Bpmn {
{ ..self, nodes: ReadOnlyArray::from_array(nodes), }
}
///|
/// A copy with `flows` replaced.
pub fn Bpmn::with_flows(self : Bpmn, flows : ArrayView[Flow]) -> Bpmn {
{ ..self, flows: ReadOnlyArray::from_array(flows), }
}
///|
/// A copy with `expanded` replaced.
pub fn Node::with_expanded(self : Node, expanded : Bool?) -> Node {
{ ..self, expanded, }
}