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