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