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) => DataSetEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}