ListDatasetImportJobsResponse.fromJson constructor

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

Implementation

factory ListDatasetImportJobsResponse.fromJson(Map<String, dynamic> json) {
  return ListDatasetImportJobsResponse(
    datasetImportJobs: (json['DatasetImportJobs'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DatasetImportJobSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}