ListDatasetsResponse.fromJson constructor

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

Implementation

factory ListDatasetsResponse.fromJson(Map<String, dynamic> json) {
  return ListDatasetsResponse(
    datasets: (json['Datasets'] as List?)
        ?.whereNotNull()
        .map((e) => DatasetSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}