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