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