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