Preset class

A named desired-configuration bundle: an ordered list of formula steps that move a server toward a target state. Presets are designed to be idempotent.

Annotations
  • @immutable

Constructors

Preset({required PresetId id, required String name, String description = '', List<PresetStep> steps = const []})
Creates a preset.
const

Properties

description → String
A short description.
final
hashCode → int
The hash code for this object.
no setterinherited
id → PresetId
The preset identity.
final
name → String
A human-friendly name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → List<PresetStep>
The ordered steps applied to converge a node to this preset.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
JSON form.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) → Preset
Decodes from JSON.