in lib/src/dependency.dart [12:37]
Map<String, Dependency> parseDeps(Map? source) =>
source?.map((k, v) {
final key = k as String;
Dependency? value;
try {
value = _fromJson(v, k);
} on CheckedFromJsonException catch (e) {
if (e.map is! YamlMap) {
// This is likely a "synthetic" map created from a String value
// Use `source` to throw this exception with an actual YamlMap and
// extract the associated error information.
throw CheckedFromJsonException(source, key, e.className!, e.message);
}
rethrow;
}
if (value == null) {
throw CheckedFromJsonException(
source,
key,
'Pubspec',
'Not a valid dependency value.',
);
}
return MapEntry(key, value);
}) ??