RawOutput.fromJson constructor
RawOutput.fromJson(
- Object? j
Implementation
factory RawOutput.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RawOutput(
rawOutput: switch (json['rawOutput']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"rawOutput" is not a list'),
},
);
}