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