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