GetVersionOperationMetadataSbomInfo.fromJson constructor
GetVersionOperationMetadataSbomInfo.fromJson(
- Object? j
Implementation
factory GetVersionOperationMetadataSbomInfo.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GetVersionOperationMetadataSbomInfo(
currentComponentVersions: switch (json['currentComponentVersions']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException(
'"currentComponentVersions" is not an object',
),
},
targetComponentVersions: switch (json['targetComponentVersions']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException(
'"targetComponentVersions" is not an object',
),
},
);
}