fromString static method
Parses a string into an OutputMode, defaulting to write.
Implementation
static OutputMode fromString(String value) => switch (value) {
'write' => OutputMode.write,
'show' => OutputMode.show,
'json' => OutputMode.json,
'none' => OutputMode.none,
_ => OutputMode.write,
};