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