BatchImportModelEvaluationSlicesResponse.fromJson constructor

BatchImportModelEvaluationSlicesResponse.fromJson(
  1. Object? j
)

Implementation

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