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