config property
Per-instance configuration, handed to the GUI-side implementation. Must be JSON-encodable — it crosses a process boundary.
Implementation
@override
Map<String, Object?> get config => {
'probe': probe.toJson(),
if (start != null) 'start': start!.toJson(),
if (stop != null) 'stop': stop!.toJson(),
if (workingDirectory != null) 'workingDirectory': workingDirectory,
'poll': poll.inMilliseconds,
'commandTimeout': commandTimeout.inMilliseconds,
if (stopIsDestructive) 'stopIsDestructive': true,
if (commands.isNotEmpty) 'commands': [for (var c in commands) c.toJson()],
};