SystemConfig class final

Effective server configuration (TOML sections as JSON). Secret values are always returned as "" and a PUT that sends "" keeps the stored secret (redaction rule, 01a §3).

Annotations
  • @immutable

Constructors

SystemConfig({required int revision, required Map<String, Object?> values, List<String>? redacted, List<String>? restartRequired, Map<String, Object?> extra = const {}})
Creates a SystemConfig.
const
SystemConfig.fromJson(Map<String, Object?> json, [String path = ''])
Decodes json; throws FormatException (with the JSON path) on a missing required member or a type mismatch. Unknown members and explicit nulls go to extra.
factory

Properties

extra → Map<String, Object?>
Members this version does not model (incl. x-* extensions and explicit nulls); written back by toJson.
final
hashCode → int
The hash code for this object.
no setteroverride
redacted → List<String>?
JSON pointers of redacted secret values
final
restartRequired → List<String>?
pointers whose change takes effect only after a restart
final
revision → int
Monotonic resource revision; the strong ETag is derived from it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, Object?>
values member.
final

Methods

copyWith({int? revision, Map<String, Object?>? values, List<String>? redacted, List<String>? restartRequired, Map<String, Object?>? extra}) → SystemConfig
A copy with the given members replaced (a member cannot be reset to null this way).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Encodes to JSON (absent members omitted, extra merged back).
toString() → String
A string representation of this object.
override

Operators

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