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