ListBatchInferenceJobsResponse.fromJson constructor

ListBatchInferenceJobsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListBatchInferenceJobsResponse.fromJson(Map<String, dynamic> json) {
  return ListBatchInferenceJobsResponse(
    batchInferenceJobs: (json['batchInferenceJobs'] as List?)
        ?.whereNotNull()
        .map((e) =>
            BatchInferenceJobSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}