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