ListDatasetContentsResponse.fromJson constructor

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

Implementation

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